Docsity

Salesforce Agentforce Specialist Certification - part 3, Appunti di Sistemi Informativi

Toggle sidebar
bg1
Data Cloud for Agentforce (20%)
This section of the exam tests these topics:
1. Explain the considerations of Agentforce Data Library and its types.
2. Given a scenario, improve an agent’s response with unstructured data
using chunking and indexing.
3. Identify the considerations for retrievers in Data Cloud such as individual
and ensemble.
4. Given a scenario, identify the considerations for search type such as
keyword, vector, and hybrid.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe

Anteprima parziale del testo

Scarica Salesforce Agentforce Specialist Certification - part 3 e più Appunti in PDF di Sistemi Informativi solo su Docsity!

Data Cloud for Agentforce (20%)

This section of the exam tests these topics:

  1. Explain the considerations of Agentforce Data Library and its types.
  2. Given a scenario, improve an agent’s response with unstructured data using chunking and indexing.
  3. Identify the considerations for retrievers in Data Cloud such as individual and ensemble.
  4. Given a scenario, identify the considerations for search type such as keyword, vector, and hybrid.

Explain the considerations of Agentforce Data

Library and its types.

What Happens at Setup?

When you create a data library, the processes that connect your data with your AI agents and features begin immediately. First, a data stream is created (for ingestion), followed by the data lake and data model objects. These objects are then mapped together, and data chunking begins. The time required for chunking varies based on factors such as the number, size, and complexity of knowledge articles or uploaded files, and the number of knowledge fields selected for chunking. After chunking is completed and the search index (for retrieval) is ready, a retriever (for query) is created. Each Agentforce Data Library has its own unique retriever, which can point to the same search index but operates independently.

(If a field is missing in the retriever, you need to update the Search Index not the retriever)

What Happens at Runtime? Once the retriever is set up and the search index is fully prepared, the system is ready to handle user queries at runtime. At runtime, the user’s query is added to the prompt template, which references the retriever connecting to relevant data. The system then searches through the search index to find the most pertinent information and incorporates it back into the prompt. The LLM receives this enriched prompt, which includes the user’s query, the added information, and the prompt instructions, and then generates a response. The Service Planner reviews this response to ensure it aligns with the prompt instructions. Finally, the end user receives a response that accurately answers the query and is contextualized with relevant, domain- specific information tailored to the specific task.

Given a scenario, improve an agent’s response with

unstructured data using chunking and indexing.

Agentforce Data Libraries enhance the accuracy of AI features like Agentforce Agents by connecting them to your trusted data sources. Data libraries use unstructured* or semi-structured data so that they can take large sets of information that exist on the web, in documents, or as large text inputs in fields, and turn that into more useful, searchable information.

  • Unstructured data is data that doesn’t have a specific, consistent format and can’t be easily stored in a typical relational database. Its lack of structure makes it particularly challenging to search or analyze. However, AI technologies, such as large language models (LLMs), can process unstructured data effectively. Common forms of unstructured data include chat transcripts, audio and video files, emails, legal documents, and other large texts, such as books. In Salesforce, examples of unstructured data are data from Knowledge articles or sales call transcripts.

When you create a data library it automates several configuration steps across Data Cloud and Prompt Builder, such as pushing data streams to Data Cloud, mapping data objects, and creating a search index and retriever. With these steps completed automatically, it’s easy to link agents to your data. You can create and configure libraries from the Agentforce Data Library setup or through Agentforce Builder.

Grounding adds domain-specific knowledge or customer information to the prompt, giving the LLM the context it needs to respond more accurately to a question or task. Grounding sources can include knowledge articles, uploaded files, or conversation transcripts. Lengthy and complicated knowledge articles and uploaded files can take a significant amount of time and processing power to search through for the right information, and LLMs have a maximum token or word limit for the amount of text it can process in a single call. To reduce costs and improve performance:  Use field filtering in the retrievers  Limit document length  Use chunking

To make the search more efficient, improve relevance, and handle very large datasets, we break down data sources into smaller parts called chunks. We then search through the chunks and only return the most relevant pieces of information for the LLM to consider.

Data Cloud supports several chunking strategies.  Semantic-based passage extraction uses the semantic meaning inherent in HTML tags to chunk a document into passages. HTML elements such as headings (, ), lists (, ), or bold text () acting as a subheading are considered logical boundaries for passages.  Window-based passage extraction strategy uses block-level elements such as and

tags, or raw text separated by line breaks to chunk documents into passages. If a paragraph doesn’t contain any HTML, the extraction is done at the sentence level.

After Data Cloud chunks your content, it creates a vector embedding—a numerical representation of the chunked content that can be retrieved or used in your Salesforce generative AI, automation, or analytics applications. Vector embeddings are numerical representations of text that store relationships between words or phrases. The embedding captures the semantic meaning of the content, so chunks of content that are semantically similar have similar vector embeddings. These representations help machines to process and comprehend language effectively. In Data Cloud, vector embeddings are referenced by index data model objects (IDMOs)

To get your unstructured data ready for search, you need to chunk and vectorize it. To do so, you create a search index configuration. You want to create a search index configuration for any data objects with text fields that contain informational concepts, narratives, or detailed descriptions that your users search to find relevant results.

Identify the considerations for retrievers in Data

Cloud such as individual and ensemble.

Retrievers Retrievers act as pointers between data and features. They are designed to automatically extract and provide relevant data from different databases, systems, or platforms. When a user asks a question, the retriever assigned to each data library determines which datasets in Data Cloud that Salesforce AI tools can access. This makes retrievers particularly important in applications like search engines, question-answering systems, and recommendation systems.

Default Retrievers When you create a search index in Data Cloud or Agent Data Library (ADL), a default retriever is created automatically. You can't customize a default retriever. However, in Einstein Studio, you can create and customize retrievers. Data preparation for retrieval from a search index involves loading, chunking, vectorizing, and storing content in a search-optimized way. Data Cloud uses a vector data store for unstructured data, such as documents and conversation histories. A search index stores chunked and vectorized data that can be searched and retrieved from other applications. You can create and manage search indexes in Data Cloud. They’re defined in a data space and associated with a Data Model Object (DMO). Search indexes are often designed for general usage, such as indexing an entire knowledge base. Individual custom retrievers for Data Cloud search indexes apply the multi-purpose search index to a particular use case. For example, retrievers can return content that’s filtered based on a category of articles, the most recent information (such as the last 90 days), a geographical region, and so on.  Dynamic Retrievers

Some standard templates contain dynamic retrievers. A dynamic retriever has a placeholder for a value specified at runtime based on the needs of the prompt template. To test a dynamic retriever, enter the retriever’s API name, which you can find in Einstein Studio.

Individual Retrievers Individual retrievers enable you to customize a retriever. To customize the retriever, select its search index, define filters, and specify what information it returns. Specify filters that narrow the search focus to more relevant data. The search index defines the fields you can use for filtering. You can use a custom retriever to configure the data returned to the prompt, including the fields and number of results to return. Each time you edit and save a custom retriever, Einstein Studio creates another version. Only one version of a retriever can be active.  Ensemble Retrievers An ensemble retriever is a collection of individual retrievers. When you run an ensemble retriever, it executes the individual retrievers, combines their 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.

Citations in Retrievers Citations link AI-generated responses to the source content relevant to each response. Citations allow users to compare the LLM response with the source data to verify the validity of the response and identify any potential inaccuracies or hallucinations. Enable citations in Einstein Studio at the individual retriever level to give access to citations to solution components that call the retriever, such as a prompt template.

Standard citations automatically generate citations that include a source URL and a header text. Custom citations allow you to define a base URL, a URL path, and a label from the source data model object (DMO) fields. Citation headings and links may be surfaced to end-users in downstream applications like Agentforce. Make sure that these fields are populated appropriately and end-users have access to the source links.

Vector search works well for long-form search queries where the users are looking for general information. The search query retrieves data that has a high vector search score that correlates to closest semantic matches.

For example, here’s a query looking for information about how Google Chrome browser works. The search query retrieves chunks that have the highest vector search score which relates to the closest semantic match with the search query. select c.Chunk_c, v.score_c from vector_search(table(WikiArticle_c_vector_search_2_index__dlm), 'how does Google Chrome internet browser work', '', 100) as v join WikiArticle_c_vector_search_2_ chunk_dlm as c on v.SourceRecordId_c=c.RecordId_c ORDER by v.score_c desc limit 3;

Result:

Hybrid Search Hybrid search combines the strengths of semantically aware vector search with the ability of keyword search to handle domain vocabulary (keyword + vector).

Hybrid search merges the retrieved information from both types of searches and then ranks the results using a fusion ranker function to show the most relevant information. The default hybrid search fusion ranker function is optimized on internal benchmarks for a variety of search-based tasks. The training and evaluation data is based on actual captured queries from Einstein Search and Gen-AI applications like Einstein Search Answers.

Hybrid search is a great option:  for long form search queries where specific search terms are also included  for documents that contain both free text and structured data (policies with IDs or versions) The search query retrieves data that has a high keyword search score that correlates to exact keyword matches and high vector search score that correlates to the closest semantic matches. This results in retrieving data with a high hybrid search score that correlates to the most relevant search results.

For the same query example we used for vector search, keyword search promotes higher ranking positions for more relevant content, thus providing the LLM with better grounding. select c.Chunk__c, h.hybrid_score__c, h.keyword_score__c, h.vector_score__c from hybrid_search(table(WikiArticle_c_hybrid_search_2_index__dlm), 'how does Google Chrome internet browser work ?', '', 100) as h join WikiArticle_c_hybrid_search_2_chunk__dlm

QUESTIONS

1. What is automatically created when a custom search index is created in Data Cloud? a. A dynamic retriever to allow runtime selection of retriever parameters without manual configuration b. A retriever that shares the name of the custom search index c. A predefined Apex retriever class that can be edited by a developer to meet specific needs 2. Which scenario best demonstrates when an Agentforce Data Library is most useful for improving an AI agent's response accuracy? a. When the AI agent needs to combine data from disparate sources based on mutually common data, such as Customer Id and Product Id for grounding. b. When data is being retrieved from Snowflake using zero-copy for vectorization and retrieval. c. When the AI agent must provide answers based on a curated set of policy documents that are stored, regularly updated, and indexed in the data library. 3. For an Agentforce Data Library that contains uploaded files, what occurs once it is created and configured? a. Indexes the uploaded files in Salesforce File Storage b. Indexes the uploaded files in a location specified by the user c. Indexes the uploaded files into Data Cloud 4. Universal Containers (UC) uses a file upload-based data library and custom prompt to support AI-driven training content.

However, users report that the AI frequently returns outdated documents. Which corrective action should UC implement to improve content relevancy? a. Switch the data library source from file uploads to a Knowledge- based data library, because Salesforce Knowledge bases automatically manage document recency, ensuring current documents are returned. b. Configure a custom retriever that includes a filter condition limiting retrieval to documents updated within a defined recent period, ensuring that only current content is used for AI responses. c. Continue using the default retriever without filters, because periodic re-uploads will eventually phase out outdated documents without further configuration or the need for custom retrievers.

5. In Agentforce, what is the role of a “retriever”? a. To return relevant data from the vector database to augment a prompt 6. Which file formats can typically be imported into the Agentforce **Data Library?

  1. What is the main purpose of the Data Library in Agentforce?**

a. To provide a centralized repository for knowledge (of articles and FAQs) that agents can access

8. NTO uses Data Cloud to manage a large volume of customer interactions. The company needs to enhance the accuracy of its LLM-generated responses by incorporating relevant knowledge from various sources. Which action should the company take to achieve this using retrievers in Data Cloud? a. Add active retrievers to prompt templates to retrieve knowledge from articles, emails, and chat transcripts. 9. An Agentforce specialist is working on improving the accuracy of agent responses by using unstructured data. The specialist needs to ensure that the data is processed in a way that enhances the agent's ability to provide accurate and relevant answers. Which method should the specialist use to improve agent responses with unstructured data? a. Storing data in a flat file b. Using chunking and indexing c. Ignoring unstructured data