semantic_search
Find documents in an indexed collection that are semantically similar to a query, ranked by cosine similarity score.
Instructions
Search a collection for documents semantically similar to a query. Returns top-k results ranked by cosine similarity. The collection must have been indexed first with semantic_index.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The search query text | |
| top_k | No | Number of top results to return (default: 5, max: 100) | |
| min_score | No | Minimum similarity score threshold (0-1, default: 0) | |
| collection | Yes | Name of the collection to search |