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

Enable Metadata Inclusion in Agent Input for R2R Use Case #1884

Open
crelocks opened this issue Jan 25, 2025 · 0 comments
Open

Enable Metadata Inclusion in Agent Input for R2R Use Case #1884

crelocks opened this issue Jan 25, 2025 · 0 comments

Comments

@crelocks
Copy link

Description:
Currently, the Agent endpoint does not include metadata in the input passed to the LLM during processing. This limitation makes it challenging to implement certain use cases, such as generating summaries of news articles while including the original URLs in the output. While a workaround exists using the RAG endpoint and the Completion API, it would be significantly more efficient to handle this in a single step using the Agent endpoint.

Approach for my use case
Current Approach:

  1. Ingested documents with the following structure:

    • Content: Title and text of the news article.
    • Metadata: URL of the news article.
  2. Approaches tested:

    • RAG Endpoint: Successfully retrieves metadata but does not pass it to the LLM.
    • Agent Endpoint: Provides references but does not include metadata (e.g., URLs) in the output. Modifying the prompts did not yield the desired results as metadata is not passed by default.
  3. Workaround:

    • Use RAG to retrieve relevant documents and their metadata.
    • Pass parsed search results (including metadata) into the Completion API for final processing.

Examples of Expected Behavior:

  • Query: "Summarize the latest news about AI advancements."

Feature Request:
Enable the Agent endpoint to include specific metadata in the input passed to the LLM, allowing the model to reference metadata in its response. This should be configurable to fit diverse use cases.

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

No branches or pull requests

1 participant