Skip to content

How to implement multiple RAG / Text Searches? #10791

Answered by westey-m
roldengarm asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @roldengarm,
Getting the LLM to invoke both when they are explicitly optional could be tricky. Having multiple plugins is certainly supported, but if you leave it to the LLM to decide which to invoke, it's important to help it understand which to invoke in which situation.
E.g. when using textsearch.CreateWithGetTextSearchResults, you can provide a description as an optional parameter which allows you to describe what that plugin does in more detail, allowing the LLM to pick the most appropriate one.

If ultimately you want both to always be invoked whenever a search is required, it might make sense to create an aggregate ITextSearch implementation, so that the LLM doesn't have to figur…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@roldengarm
Comment options

Answer selected by roldengarm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants