qdrantdb
langroid/vector_store/qdrantdb.py
QdrantDB(config=QdrantDBConfig())
¶
Bases: VectorStore
Source code in langroid/vector_store/qdrantdb.py
clear_all_collections(really=False, prefix='')
¶
Clear all collections with the given prefix.
Source code in langroid/vector_store/qdrantdb.py
list_collections(empty=False)
¶
Returns:
Type | Description |
---|---|
List[str]
|
List of collection names that have at least one vector. |
Parameters:
Name | Type | Description | Default |
---|---|---|---|
empty |
bool
|
Whether to include empty collections. |
False
|
Source code in langroid/vector_store/qdrantdb.py
create_collection(collection_name, replace=False)
¶
Create a collection with the given name, optionally replacing an existing
collection if replace
is True.
Args:
collection_name (str): Name of the collection to create.
replace (bool): Whether to replace an existing collection
with the same name. Defaults to False.
Source code in langroid/vector_store/qdrantdb.py
is_valid_uuid(uuid_to_test)
¶
Check if a given string is a valid UUID.