Skip to content

Interface: SimilaritySearchResponse

@kortexya/reasoninglayer


@kortexya/reasoninglayer / SimilaritySearchResponse

Defined in: src/types/fuzzy.ts:226

Response from similarity search.

Wraps a list of SimilarityMatch results with a total count. Used by both findSimilar and searchTopK endpoints.

count: number

Defined in: src/types/fuzzy.ts:228

Number of results returned.


optional coverage?: SearchCoverageDto | null

Defined in: src/types/fuzzy.ts:248

What the search caps dropped, when they dropped anything.

Absent on an exhaustive search. Tells a caller whether to narrow the sort or raise the caps.


exhaustive: boolean

Defined in: src/types/fuzzy.ts:240

Whether the search saw everything it should have.

false means candidates were dropped BEFORE any similarity degree was computed, so a better match may exist among them: this response is a SAMPLE, not an answer. See SimilaritySearchResponse.coverage for what was dropped.


results: SimilarityMatch[]

Defined in: src/types/fuzzy.ts:230

List of matching terms with similarity scores.