/** * @module @nhtio/adk/batteries/vector/meilisearch * * Meilisearch adapter. Each collection is a Meilisearch index with a `userProvided` embedder * (BYO vectors under `_vectors.`); KNN uses semantic search (`vector` + * `hybrid.semanticRatio = 1`). Metadata is stored as a JSON string field and filtered with the * neutral filter tree's JS reference evaluator for exact cross-adapter parity. Meilisearch * returns `_rankingScore` already normalized to [0,1] (higher = closer). * * Requires the `vectorStore` experimental feature, which the adapter enables on connect. * Driver: `meilisearch` (pure JS). */ import { BaseVectorStore } from "../contract"; import type { SearchPlan, UpsertPlan, DeletePlan, CollectionSpec } from "../plan"; import type { VectorMatch, VectorStoreCapabilities, BaseVectorStoreOptions } from "../types"; export interface MeilisearchVectorStoreOptions extends BaseVectorStoreOptions { /** Connection and authentication parameters for the backend. */ connection?: { host?: string; apiKey?: string; }; } export declare class MeilisearchVectorStore extends BaseVectorStore { #private; readonly capabilities: VectorStoreCapabilities; /** Static availability probe: whether this adapter's runtime driver can load in the current environment. */ static isAvailable(): boolean; isAvailable(): boolean; connect(): Promise; close(): Promise; createCollection(spec: CollectionSpec, ifNotExists: boolean): Promise; dropCollection(collection: string, ifExists: boolean): Promise; hasCollection(collection: string): Promise; renameCollection(_from: string, _to: string): Promise; executeUpsert(plan: UpsertPlan): Promise; executeSearch(plan: SearchPlan): Promise; executeDelete(plan: DeletePlan): Promise; }