invoicelens_search_documents
Search ingested invoices semantically to find relevant passages by natural-language query, returning document IDs, filenames, pages, chunk types, and similarity scores for citation.
Instructions
Semantic search over ingested invoices. Returns the top-k passages with doc_id, filename, page, chunk type and similarity score — cite filename and page in answers. Use the doc_id with invoicelens_extract_invoice to read a document's fields precisely.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | Number of passages to return. | |
| query | Yes | What to look for, in natural language, e.g. 'late payment penalty' or 'Acme invoice total'. | |
| doc_id | No | Restrict to one document. | |
| collection | No | Index to use, e.g. 'default' or a per-client name. Lowercase letters, digits, '-', '_'. | |
| chunk_types | No | Restrict to chunk types, e.g. ['totals'] for amounts or ['text'] for terms. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| results | Yes | ||
| collection | Yes |