Firestore
Firestore文档存储 #
基类:EventKVDocumentStore
Firestore 文档(节点)存储。
一个用于文档和节点对象的 Firestore 存储。
参数:
| 名称 | 类型 | 描述 | 默认 |
|---|---|---|---|
firestore_kvstore
|
FirestoreKVStore
|
Firestore 键值存储 |
required |
namespace
|
str
|
文档存储的命名空间 |
None
|
workflows/handler.py 中的源代码llama_index/storage/docstore/firestore/base.py
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 | |
from_database
classmethod
#
from_database(project: str, database: str, namespace: Optional[str] = None) -> FirestoreDocumentStore
参数:
| 名称 | 类型 | 描述 | 默认 |
|---|---|---|---|
project
|
str
|
客户所代表的项目。 |
required |
database
|
str
|
客户端所指向的数据库名称。 |
required |
namespace
|
str
|
文档存储的命名空间。 |
None
|
workflows/handler.py 中的源代码llama_index/storage/docstore/firestore/base.py
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | |
选项: 成员:- FirestoreDocumentStore