R2R
R2R copied to clipboard
Search Results Missing Document Metadata in R2R v3.2.41
trafficstars
Describe the bug
Search results from the /search endpoint in R2R v3.2.41 are missing document metadata (particularly titles) that are present in the document store and accessible via /documents_overview endpoint. This affects both agent and direct search results.
To Reproduce Steps to reproduce the behavior:
- Start R2R v3.2.41 Docker container with default configuration
- Upload any document with metadata (including title)
- Make a GET request to
/documents_overview- note the complete metadata - Make a POST request to
/searchendpoint - Observe search results missing expected metadata fields
Expected behavior Search results should include complete document metadata in the response:
"metadata": {
"associated_query": "What is the capital of France?",
"title": "example_document.pdf"
}
Current behavior Instead, search results only contain limited metadata:
"metadata": {
"version": "v0",
"chunk_order": 67,
"document_type": "pdf",
"associated_query": "ds"
}
Screenshots
-
No title in search metadata.
-
Title available on overview
Environment:
- R2R Version: 3.2.41
- Deployment: Docker
- Configuration: Default settings
- OS: N/A (Docker container) (MacOS for frontend)
Additional context
- Issue occurs with default search configuration
- Documents have correct metadata when viewed through
/documents_overview - Issue affects all search results consistently
- Impacts both vector search and agent-based search results
- Currently requires additional API calls to retrieve complete document information