Rank Documents By Embedding
rank_documents_by_embeddingEmbed a query and candidate documents, then rank documents by cosine similarity. Use for semantic matching, retrieval checks, clustering triage, and lightweight RAG over user-provided passages.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| top_k | Yes | ||
| documents | Yes |