lm_rag_search
Search local document collections for relevant source excerpts using cosine similarity, excluding changed or missing files and rejecting incompatible embeddings.
Instructions
Retrieve source excerpts using cosine similarity. Excludes changed/missing documents and rejects incompatible embeddings.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"collection": "<collection>",
"query": "<query>",
"embedding_model": "<embedding_model>"
},
"name": "lm_rag_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| top_k | No | ||
| min_score | No | ||
| collection | Yes | ||
| embedding_model | Yes |