Validator
This module contains functionality related to the the validator module for embedding.vector_stores.qdrant.
Validator
QdrantVectorStoreValidator
Bases: BaseVectorStoreValidator
Validator for Qdrant vector store configuration.
Validates collection settings and existence for Qdrant vector store backend.
| Attributes: |
|
|---|
Source code in src/embedding/vector_stores/qdrant/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 59 60 | |
__init__(configuration, client)
Initialize validator with configuration and client.
| Parameters: |
|
|---|
Source code in src/embedding/vector_stores/qdrant/validator.py
25 26 27 28 29 30 31 32 33 34 35 36 37 | |
validate()
Validate the Qdrant vector store settings.
Performs validation checks on the provided configuration to ensure compatibility with Qdrant backend requirements.
Source code in src/embedding/vector_stores/qdrant/validator.py
39 40 41 42 43 44 45 | |
validate_collection()
Validate Qdrant collection existence.
Checks if the specified collection already exists in the Qdrant database and raises an exception if it does, preventing unintentional overwriting of existing collections.
| Raises: |
|
|---|
Source code in src/embedding/vector_stores/qdrant/validator.py
47 48 49 50 51 52 53 54 55 56 57 58 59 60 | |
QdrantVectorStoreValidatorFactory
Bases: SingletonFactory
Factory for creating Qdrant vector store validators.
Implements the singleton pattern to ensure only one validator instance exists for each unique configuration.
Source code in src/embedding/vector_stores/qdrant/validator.py
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 89 90 | |