Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add dynamic documents #123

Closed

Conversation

marieaurore123
Copy link
Contributor

@marieaurore123 marieaurore123 commented Nov 25, 2024

Currently, when an agent needs to execute a vector search, we pass the vector store index as a parameter to the agent (with dynamic_context) and the agent executes said vector search internally.

The problem I am facing with my use case is that the rig app needs access to the results of the vector search separately from the RAG process. Ex:

  1. Execute vector search
  2. Rig app does stuff with the vector search result
  3. Rig app sends vector search results to agent --> agent adds RAGged documents to context window

Right now, step 2 is not possible, unless vector search is executed twice.

Proposed solution

  • Execute the vector search outside of the agent and have the option to pass the results of the vector search to the agent (instead of doing the vector search inside).
  • Add dynamic_documents: Vec<Document> to the agent

@cvauclair
Copy link
Contributor

What is the difference between this and the existing static_context documents?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants