Interface: EmbeddingRankResponse
@kortexya/reasoninglayer / EmbeddingRankResponse
Interface: EmbeddingRankResponse
Section titled “Interface: EmbeddingRankResponse”Defined in: src/types/embeddings.ts:36
Response of POST /api/v1/embeddings/rank.
Properties
Section titled “Properties”scores
Section titled “scores”scores:
number[]
Defined in: src/types/embeddings.ts:45
Cosine similarity in [-1, 1], same length and same order as the request’s
candidates — index i scores candidates[i].
Higher is more similar. A candidate with no scoreable text (blank or
whitespace-only) scores 0, which is the same value an orthogonal candidate
gets: absence of signal, not evidence of dissimilarity.