retrieve_chunks
Retrieve relevant content from past conversations using keyword queries, with optional date and metadata filters, to provide evidence-based answers with source citations.
Instructions
Run Chronicle retrieval for one string query or a list of sub-queries; return standardized chunks with metadata. Supports optional date window and metadata filters.
Best practices for the calling LLM:
Decompose complex questions into 3-5 focused keyword queries.
Use array syntax: ["topic keywords", "related concept"] not full sentences.
Use filters when you know the content type or project.
Use date_from/date_to for temporal queries.
The returned chunks contain source_name, timestamp, relevance_score, content_raw, content_type, and project fields. The calling LLM should synthesize an evidence-based answer from these chunks, citing sources and presenting an evidence timeline.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | Number of results per query (default: 8). | |
| date_to | No | Inclusive end date filter (YYYY-MM-DD). | |
| filters | No | Optional metadata filters. Supported keys: type (chat|code|doc|unknown), project, source, title, author, path. All filters are case-insensitive substring matches. | |
| date_from | No | Inclusive start date filter (YYYY-MM-DD). | |
| retrieval_query | Yes | One or more retrieval queries. Use keyword-dense phrases, not full sentences. Array of 3-5 variations recommended for complex questions. |