ahvn.klstore.vdb_store module¶
- class ahvn.klstore.vdb_store.VectorKLStore(collection=None, name=None, condition=None, *args, **kwargs)[源代码]¶
基类:
BaseKLStoreVector database backed KL store using the VDB adapter.
Minimal implementation that maps vector database records to BaseUKF objects.
- __init__(collection=None, name=None, condition=None, *args, **kwargs)[源代码]¶
Initialize the vector database KL store.
- 参数:
collection (
Optional[str]) -- Vector database collection or table name.name (
Optional[str]) -- Name of the KLStore instance. If None, defaults to the collection name or "default".condition (
Optional[Callable]) -- Optional upsert/insert condition to apply to the KLStore. KLs that do not satisfy the condition will be ignored. If None, all KLs are accepted.*args -- Additional positional arguments for BaseKLStore.
**kwargs -- Additional keyword arguments for adapter or vector database configuration.