@sqlrooms/ai-rag / EmbeddingDatabase
Type Alias: EmbeddingDatabase
EmbeddingDatabase:
object
Type declaration
| Name | Type | Description |
|---|---|---|
databaseFilePathOrUrl | string | Path or URL to the DuckDB embedding database file |
databaseName | string | Name to use when attaching the database |
embeddingProvider | EmbeddingProvider | Embedding 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? | number | Expected embedding dimensions (for validation). Should match the model used during preparation. Will be validated against database metadata. |
