Skip to content

Include document metadata in LLM responses from collection index searches #3335

@ocs-agent

Description

@ocs-agent

Summary

When returning data to the LLM from collection index searches, include the document metadata (e.g. source, title, document ID, or other relevant fields) alongside the retrieved content.

Motivation

Currently, search results returned to the LLM from collection indexes only include the document content. Including metadata would allow the LLM to:

  • Make better use of contextual information about the retrieved documents

Proposed Behaviour

When a collection index search returns results to the LLM, each result should include relevant document metadata fields in addition to the content chunk.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    🔖 Ready

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions