Skip to content

@studnicky/semantic-matching

@studnicky/semantic-matching defines provider-neutral contracts for vectorization, vector search, classification, reranking, and adjudication. Consumers supply model or index implementations and compose these contracts with deterministic matching primitives.

Install

bash
pnpm add @studnicky/semantic-matching

Exports

SymbolPurposeImport path
AdjudicationInputInterfaceDefines candidate content and the requested adjudication limit.@studnicky/semantic-matching
AdjudicationInterfaceDefines an adjudicated candidate identifier and confidence.@studnicky/semantic-matching
AdjudicatorInterfaceDefines provider-neutral candidate adjudication.@studnicky/semantic-matching
ClassificationInputInterfaceDefines content and optional candidate labels for classification.@studnicky/semantic-matching
ClassificationInterfaceDefines a classified label and confidence.@studnicky/semantic-matching
ClassifierInterfaceDefines provider-neutral content classification.@studnicky/semantic-matching
RerankerInterfaceDefines provider-neutral candidate reranking.@studnicky/semantic-matching
RerankInputInterfaceDefines content and candidate identifiers for reranking.@studnicky/semantic-matching
RerankMatchInterfaceDefines a reranked candidate identifier and score.@studnicky/semantic-matching
VectorEntryInterfaceDefines a namespaced vector entry.@studnicky/semantic-matching
VectorIndexInterfaceDefines namespaced vector upsert, deletion, and search.@studnicky/semantic-matching
VectorizationInputInterfaceDefines content and optional metadata for vectorization.@studnicky/semantic-matching
VectorizerInterfaceDefines provider-neutral vector creation and model identity.@studnicky/semantic-matching
VectorMatchInterfaceDefines a vector search result identifier and score.@studnicky/semantic-matching
VectorSearchOptionsInterfaceDefines the vector search namespace and result limit.@studnicky/semantic-matching

Source on GitHub