Systems, methods, and computer-readable media provide a context-specific prompt to answer a user query. The systems, methods, and computer-readable media determine a
context based on content of a
natural language request and / or determine a role of a user who submitted the
natural language request. Additionally or alternatively, templates or RAG sources that will be used for prompt generation may include financials domain-
specific knowledge or other domain-
specific knowledge or insights. Inclusion of this additional information in the prompt enhances the context to promote more accurate results from a large
language model. In one embodiment, the prompt templates are created from various RAG sources, such as payables, general ledger, receivables, and asset management, containing structured data and information specific to the financial domain, enterprise, or other domain, which helps craft accurate prompts. A prompt is generated that identifies a subset of available fields and other selected information based on the role or other context. The prompt template may contain domain-
specific knowledge uses a relevant domain or enterprise information to drive relevant results, and an
executable query is generated by a large
language model based on the prompt. The
executable query causes data to be retrieved from a
database to generate a result, and information is displayed based at least in part on the result.