Better knowledge retrieval
Relevance provides a knowledge search step in our tool builder, but advanced users may want more control over the process to achieve more precise results. For more advanced knowledge retrieval, you can implement a series of steps in your tool.- Query Refinement: add a LLM step and give it a prompt that asks it to refine a user’s free-form query into a more effective search query. This process removes filler words and focuses on the core intent of the question.
- Vector Search: Add a knowledge search step where the refined query can be used in a vector search of a knowledge table. Vector search goes beyond simple text matching, looking for semantic similarities. This allows for more flexible and intelligent matching of queries to relevant information.
- Result Validation and Summarization: Add a final LLM step to process to validate and summarize the search results. This filters out irrelevant information that might have been returned by the vector search, and synthesizes the relevant information into a coherent answer. You can also provide instructions for handling cases where no relevant information is found.