In Memory
Simple vector store index.
InMemoryVectorStore ¶
Bases: LlamaIndexVectorStore
Source code in libs/kotaemon/kotaemon/storages/vectorstores/in_memory.py
save ¶
save a simpleVectorStore to a dictionary.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
save_path
|
str
|
Path of saving vector to disk. |
required |
fs
|
Optional[AbstractFileSystem]
|
An abstract super-class for pythonic file-systems |
None
|
Source code in libs/kotaemon/kotaemon/storages/vectorstores/in_memory.py
load ¶
Create a SimpleKVStore from a load directory.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
load_path
|
str
|
Path of loading vector. |
required |
fs
|
Optional[AbstractFileSystem]
|
An abstract super-class for pythonic file-systems |
None
|