Skip to content

@sqlrooms/ai-rag / EmbeddingDatabase

Type Alias: EmbeddingDatabase

EmbeddingDatabase: object

Type declaration

NameTypeDescription
databaseFilePathOrUrlstringPath or URL to the DuckDB embedding database file
databaseNamestringName to use when attaching the database
embeddingProviderEmbeddingProviderEmbedding provider for this database. MUST match the model used during database preparation. Example: If database was prepared with OpenAI text-embedding-3-small, provide an OpenAI embedding function here. Note: API key management (if needed) should be configured during provider creation using createAiEmbeddingProvider with a getApiKey function.
embeddingDimensions?numberExpected embedding dimensions (for validation). Should match the model used during preparation. Will be validated against database metadata.