/** * Utilities for creating and managing vector stores. * * This module provides utilities for working with embeddings and vector stores, * providing functionality for creating and managing vector stores. */ /** * Configuration for creating a vector store. */ export interface VectorStoreConfig { /** The type of vector store to create. */ type: 'memory' | 'pinecone' | 'weaviate' | 'chroma'; /** Configuration specific to the vector store type. */ config: Record; /** Whether to create the store in read-only mode. */ readOnly?: boolean; } /** * Interface for a vector store. */ export interface VectorStore { /** Add documents to the vector store. */ addDocuments(documents: Document[]): Promise; /** Search for similar documents. */ search(query: string, limit?: number): Promise; /** Delete documents from the vector store. */ deleteDocuments(documentIds: string[]): Promise; /** Get document by ID. */ getDocument(id: string): Promise; } /** * Interface for a document in the vector store. */ export interface Document { /** Unique identifier for the document. */ id: string; /** Text content of the document. */ content: string; /** Optional metadata for the document. */ metadata?: Record; /** Optional embedding vector. */ embedding?: number[]; } /** * Interface for search results. */ export interface SearchResult { /** The document that was found. */ document: Document; /** Similarity score between the query and document. */ score: number; } /** * Create a vector store based on configuration. * * @param config - Configuration for the vector store. * @returns A configured vector store instance. */ export declare function createVectorStore(config: VectorStoreConfig): Promise; //# sourceMappingURL=vector-store.d.ts.map