---
sourceDocument: Xanadu Enable AI
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/intelligent-experiences

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu Enable AI

ft:clusterId :

    - platai

bundleId :

    - platai

workflow :

    - Platform


---

# Add a retriever

# Add a retriever {#ariaid-title1}

* Release version: Xanadu
* 
* Updated October 7, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

Add a retriever to your prompt to augment and add context to your prompts with AI search results.

## Before you begin

Role required: sn_skill_builder.admin

## About this task

Using a retriever in a skill enhances the relevance and coherence of a response by pulling relevant information from a source and then feeding it to a large language model (LLM) to create the final output. This process leads
to smoother conversational flow and better scalability as data grows, without requiring model fine-tuning.

A retriever enables the chatbot to access external knowledge by fetching relevant background information, resulting in more factual, in-depth, and informed responses.

## Procedure

1. Navigate to AllNow Assist Skill KitHome.
2. Create a new skill or select the skill that you want to add a retriever to.
3. Select Add Tool.
4. Select Retriever from the drop-down menu.
5. Select Configure retriever.
6. On the form, fill in the fields.  
   {#add-retriever__table_bzy_5jv_ddc__entry__2}

   | Field | Description |
   |-|-|
   | Name | The name for the retriever. |
   | Search query | The information that you want to search for. It can be static text or a skill input. |
   | Search profile | A group of search sources. |
   | Search sources | Tables in ServiceNow that have been indexed and can be used for search. |
   | Fields returned | The fields that you want returned from the search sources and sent to the large language model (LLM). |
   | Limit | The maximum number of results that are returned. |
   | Search criteria | * Hybrid * Semantic * Keyword {#add-retriever__ul_q5z_xdw_2dc} Note: If you choose Hybrid or Semantic, you can make selections for chunking and reranking. To learn more about chunking and reranking, see [Retriever chunking and reranking](https://servicenow-prod.fluidtopics.net/U_x8kfc7EFpqZ3dxDnJcQQ "When you’re building a skill prompt that uses a retriever you can use chunking and reranking to enhance the accuracy and relevance of your responses."). |
   [Table 1. Add tool form]

   {#add-retriever__table_bzy_5jv_ddc}
7. Select Next.
8. If you selected Hybrid or Semantic search criteria, select a semantic index.  
   A semantic index enables you to search for data based on contextual meaning.
9. **Optional:** If you selected Hybrid or Semantic search criteria, select Advanced to change the document matching threshold.  
   The document matching threshold is the threshold for semantic matching. The default value is 0. You can input any value from 0 to 1. You can get more precise results with a higher value.
10. Select Next.  
    Note:  
    If you selected Hybrid or Semantic search criteria, see [Retriever chunking and reranking](https://servicenow-prod.fluidtopics.net/U_x8kfc7EFpqZ3dxDnJcQQ "When you’re building a skill prompt that uses a retriever you can use chunking and reranking to enhance the accuracy and relevance of your responses.") to complete setting up your retriever.
11. Review the retriever tool information.
12. Select Add tool.
* **[Retriever chunking and reranking](https://servicenow-prod.fluidtopics.net/U_x8kfc7EFpqZ3dxDnJcQQ)**   
  When you're building a skill prompt that uses a retriever you can use chunking and reranking to enhance the accuracy and relevance of your responses.

*[\>]: and then


