Loading
Salesforce now sends email only from verified domains. Read More
Agentforce and Einstein Generative AI
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Ground with Knowledge Using Retrieval Augmented Generation

          Ground with Knowledge Using Retrieval Augmented Generation

          Retrieval augmented generation (RAG) in Data 360 improves the quality, accuracy, and relevance of your LLM-generated responses. Enhance your prompt templates using retrievers with Einstein Search. Add relevant knowledge from unstructured text sources into your LLM prompts. Retrieve knowledge from articles, emails, chat transcripts, and other sources.

          Note
          Note
          • Einstein Search has recently been renamed to Retriever. In the Prompt Template Workspace, type @ or click Insert Resource and click Retrievers.
          • In the resource picker, retrievers don't show up automatically. To find an available retriever, click Configure Retrievers +, select and configure it, then apply changes and insert it.
          • About Retrievers in Prompt Templates
            Use retrievers in prompt templates to search for and return relevant information from knowledge that's indexed in Data 360. Retrievers augment prompt templates by providing relevant, specialized grounding information for prompts. Retrievers are created in AI Models (formerly Einstein Studio).
          • Add an Individual Retriever to a Prompt Template
            Use individual retrievers in prompt templates to ground your LLM prompts with relevant knowledge. Individual retrievers include retrievers created in AI Models (formerly Einstein Studio) and legacy default retrievers created previously in Data 360.
          • Add an Ensemble Retriever to a Prompt Template
            Use ensemble retrievers in prompt templates to ground your LLM prompts with relevant knowledge. An ensemble retriever is a collection of individual retrievers. When you run an ensemble retriever, it executes the individual retrievers, combines their search results into a single list, reranks the list according to relevance to the search request, and returns just the most relevant information to the prompt or agent. Ensemble retrievers conduct searches from multiple sources in parallel.
          • Add a Web Retriever to a Prompt Template
            Use web retrievers in prompt templates to ground your LLM prompts with relevant knowledge from web sites. Web retrievers are created when a data library that uses web search is created in Agentforce Data Library.
          • Customize Retriever Output with Prefilters
            Get more relevant search results using prefilters in your prompt templates. Prefilters define the conditions that limit the scope of a retriever’s search so that only the most relevant information is returned. For example, you can use prefilters to retrieve content associated with only a particular country or product. The filter value, such as the country code or product Id, is specified in the prompt template at run time.
          • Add Citations to Prompt Template Responses
            Add citations to your prompt templates so that your users can compare and verify the generated information with the source information. Sources include content used by agent actions, knowledge articles, and web pages.
           
          Loading
          Salesforce Help | Article