Skip to content

Interface: EmbeddingRankResponse

@kortexya/reasoninglayer


@kortexya/reasoninglayer / EmbeddingRankResponse

Defined in: src/types/embeddings.ts:36

Response of POST /api/v1/embeddings/rank.

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.