跳转到内容

凝胶

凝胶文档存储 #

基类:EventKVDocumentStore

凝胶文档(节点)存储。

用于文档和节点对象的Gel存储。

参数:

名称 类型 描述 默认
gel_kvstore GelKVStore

Gel 键值存储

required
namespace str

文档存储的命名空间

None
batch_size int

批量操作的批次大小

DEFAULT_BATCH_SIZE
workflows/handler.py 中的源代码llama_index/storage/docstore/gel/base.py
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
class GelDocumentStore(KVDocumentStore):
    """
    Gel Document (Node) store.

    A Gel store for Document and Node objects.

    Args:
        gel_kvstore (GelKVStore): Gel key-value store
        namespace (str): namespace for the docstore
        batch_size (int): batch size for bulk operations

    """

    def __init__(
        self,
        gel_kvstore: GelKVStore,
        namespace: Optional[str] = None,
        batch_size: int = DEFAULT_BATCH_SIZE,
    ) -> None:
        """Init a GelDocumentStore."""
        super().__init__(gel_kvstore, namespace=namespace, batch_size=batch_size)

选项: 成员:- GelDocumentStore