Initializes the VectorStoreManager with configurations for all its managed providers
and data sources. This involves instantiating and initializing each configured
IVectorStore provider.
The manager's configuration, including an array of individual vector store provider configurations.
An array of configurations for all logical data sources, which map to specific providers and collections/indexes within them.
A promise that resolves when the manager and all its essential providers are successfully initialized.
If initialization fails due to invalid configuration, inability to connect to a critical provider, or other setup errors.
Retrieves a specific, initialized IVectorStore provider instance by its configured ID.
The provider ID corresponds to VectorStoreProviderConfig.id.
The unique ID of the vector store provider instance.
The IVectorStore instance.
If the providerId is not configured, not found, or the provider failed to initialize.
Retrieves the default IVectorStore provider instance as configured in VectorStoreManagerConfig.defaultProviderId.
The default IVectorStore instance.
If no default provider is configured, the configured default provider is not found, or it failed to initialize.
Retrieves an IVectorStore instance and the specific collection name within that store
associated with a given logical RAG Data Source ID.
This is a convenience method for services like RetrievalAugmentor that operate on
logical dataSourceIds.
The logical RAG Data Source ID (from RagDataSourceConfig.dataSourceId).
A promise that resolves with the IVectorStore instance, the actual collection name to use with that store for this data source, and the expected embedding dimension.
If the dataSourceId is not configured, or its associated provider is unavailable.
Checks the health of all managed vector store providers or a specific one.
This aggregates health information from individual IVectorStore.checkHealth() calls.
Optional providerId: stringOptional: If provided, checks only this specific provider. If omitted, checks all configured providers.
A promise that resolves with a comprehensive health report.
IVectorStoreManager
Description
Manages and provides access to various configured IVectorStore instances. It allows higher-level services like the RetrievalAugmentor to be agnostic of the specific vector database being used for a particular data source or category, based on the provided
VectorStoreManagerConfigandRagDataSourceConfig.