Validator
This module contains functionality related to the the validator
module for embedding.vector_stores.chroma
.
Validator
ChromaVectorStoreValidator
Bases: BaseVectorStoreValidator
Validator for Chroma vector store configuration.
Validates collection settings and existence for Chroma vector store backend. Ensures proper configuration before operations are performed against the vector store.
Source code in src/embedding/vector_stores/chroma/validator.py
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
|
__init__(configuration, client)
Initialize validator with configuration and client.
Parameters: |
|
---|
Source code in src/embedding/vector_stores/chroma/validator.py
22 23 24 25 26 27 28 29 30 31 32 33 34 |
|
validate()
Validate the Chroma vector store settings.
Performs all required validation steps for the Chroma vector store, including collection validation.
Raises: |
|
---|
Source code in src/embedding/vector_stores/chroma/validator.py
36 37 38 39 40 41 42 43 44 45 |
|
validate_collection()
Validate Chroma collection existence.
Checks if a collection with the specified name already exists in the Chroma database.
Raises: |
|
---|
Source code in src/embedding/vector_stores/chroma/validator.py
47 48 49 50 51 52 53 54 55 56 57 58 |
|
ChromaVectorStoreValidatorFactory
Bases: SingletonFactory
Factory for creating configured Chroma validator instances.
Manages the creation and caching of ChromaVectorStoreValidator instances based on provided configuration.
Attributes: |
|
---|
Source code in src/embedding/vector_stores/chroma/validator.py
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
|