Skip to content

RAG implementation tips? #11739

Answered by westey-m
flintlouis asked this question in Q&A
Apr 25, 2025 · 2 comments · 5 replies
Discussion options

You must be logged in to vote

@flintlouis some thoughts:

  1. Yes, it can certainly be good to include additional context in the vector you are going to search for, but it will depend on whether that information will help match the user input. If not, then don't include it. If you just need a way to refer back to the source for citations, you can include the source file info in other fields on the same record in the DB.
  2. Searching can take one of two forms. You can either search automatically before each agent invocation, or you can register a function to do search and allow the agent to choose whether to invoke that function. With the first option, you could inject the search results into the agent via additional instruct…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@flintlouis
Comment options

@westey-m
Comment options

@flintlouis
Comment options

@westey-m
Comment options

westey-m May 2, 2025
Collaborator

@flintlouis
Comment options

Answer selected by flintlouis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
.NET Issue or Pull requests regarding .NET code memory connector agents
3 participants