Mongodb
MongoIndexStore #
基类: KVIndexStore
Mongo 索引存储。
参数
名称 | 类型 | 描述 | 默认值 |
---|---|---|---|
mongo_kvstore
|
MongoDBKVStore
|
MongoDB 键值存储 |
必需 |
namespace
|
str
|
索引存储的命名空间 |
无
|
collection_suffix
|
str
|
集合名称的后缀 |
无
|
源代码位于 llama-index-integrations/storage/index_store/llama-index-storage-index-store-mongodb/llama_index/storage/index_store/mongodb/base.py
7 8 9 10 11 12 13 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 |
|
from_uri 类方法
#
from_uri(uri: str, db_name: Optional[str] = None, namespace: Optional[str] = None, collection_suffix: Optional[str] = None) -> MongoIndexStore
从 MongoDB URI 加载 MongoIndexStore。
源代码位于 llama-index-integrations/storage/index_store/llama-index-storage-index-store-mongodb/llama_index/storage/index_store/mongodb/base.py
29 30 31 32 33 34 35 36 37 38 39 |
|
from_host_and_port 类方法
#
from_host_and_port(host: str, port: int, db_name: Optional[str] = None, namespace: Optional[str] = None, collection_suffix: Optional[str] = None) -> MongoIndexStore
从 MongoDB 主机和端口加载 MongoIndexStore。
源代码位于 llama-index-integrations/storage/index_store/llama-index-storage-index-store-mongodb/llama_index/storage/index_store/mongodb/base.py
41 42 43 44 45 46 47 48 49 50 51 52 |
|