momento
langroid/vector_store/momento.py
Momento Vector Index. https://docs.momentohq.com/vector-index/develop/api-reference DEPRECATED: API is unstable.
MomentoVI(config=MomentoVIConfig())
¶
Bases: VectorStore
Source code in langroid/vector_store/momento.py
clear_all_collections(really=False, prefix='')
¶
Clear all collections with the given prefix.
Source code in langroid/vector_store/momento.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/momento.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.