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.
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:
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.