How to define configurations?
Theconfig is defined as an object with two main keys:
vector_store: Specifies the vector database provider and its configurationprovider: The name of the vector database (e.g., “chroma”, “pgvector”, “qdrant”, “milvus”, “upstash_vector”, “azure_ai_search”, “vertex_ai_vector_search”, “valkey”)config: A nested dictionary containing provider-specific settings
How to Use Config
Here’s a general example of how to use the config with mem0:The in-memory vector database is only supported in the TypeScript implementation.
Why is Config Needed?
Config is essential for:- Specifying which vector database to use.
- Providing necessary connection details (e.g., host, port, credentials).
- Customizing database-specific settings (e.g., collection name, path).
- Ensuring proper initialization and connection to your chosen vector store.
Master List of All Params in Config
Here’s a comprehensive list of all parameters that can be used across different vector databases:- Python
- TypeScript
Customizing Config
Each vector database has its own specific configuration requirements. To customize the config for your chosen vector store:- Identify the vector database you want to use from supported vector databases.
- Refer to the
Configsection in the respective vector database’s documentation. - Include only the relevant parameters for your chosen database in the
configdictionary.