Semantic search over candidates
jev_findRank up to 250 candidates by how well they answer a natural-language query, and verify that at least one actually addresses it. Use to find which file, note, or line covers a topic.
Instructions
Rank candidates against a plain-language query with TypeSafe Jev — no embeddings needed. One Choice scores every candidate id by how well it answers the query, plus a Noul checks whether any candidate addresses the query at all (so a confident 'top hit' cannot masquerade as an answer). Pattern: docs.typesafe.ai/cookbooks/semantic_find. Use for 'which file/note/line covers X' across up to 250 candidates.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | What you are looking for, in natural language. | |
| top_k | No | How many ranked candidates to return. Default 5. | |
| candidates | Yes | Candidates to search. Up to 250 in one call; texts are truncated at 2000 chars. |