跳到内容

Gel

GelDocumentStore #

基类: KVDocumentStore

Gel 文档(节点)存储。

用于存储 Document 和 Node 对象的 Gel 存储。

参数

名称 类型 描述 默认值
gel_kvstore GelKVStore

Gel 键值存储

必需
namespace str

文档存储的命名空间

batch_size int

批量操作的批次大小

DEFAULT_BATCH_SIZE
源代码位于 llama-index-integrations/storage/docstore/llama-index-storage-docstore-gel/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)