reqs_search_similar
Find requirements semantically similar to a query embedding, ranked by cosine similarity, with optional status and similarity filters. Handles mismatched vector dimensions gracefully.
Instructions
Find requirements semantically similar to a query.
Pass a query embedding (from the same model used to embed requirements). You compute it yourself; no text is sent anywhere by this tool, and the query vector is not stored.
Requirements whose stored vector has a different number of components than your query are EXCLUDED from the search rather than compared, so one foreign vector can no longer make the whole search fail. That also means they are invisible here: if you get fewer results than you expect, call reqs_embedding_stats, which reports which widths this tracker holds. A query vector that is empty or contains NaN or infinity is refused, because it would match nothing and return an empty list indistinguishable from an empty tracker.
Returns requirements ranked by cosine similarity.
Args:
query_embedding: Query vector
limit: Max results (default 10)
min_similarity: Minimum cosine similarity (default 0.3)
status: Optional status filter
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| status | No | ||
| min_similarity | No | ||
| query_embedding | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |