Skip to content

Constants

gllm_datastore.constants

Contains constants used throughout the gllm_datastore package.

Authors

Resti Febriana (resti.febriana@gdplabs.id) Kadek Denaya (kadek.d.r.diana@gdplabs.id)

References

NONE

DEFAULT_REQUEST_TIMEOUT = 60 module-attribute

DEFAULT_TOP_K = 10 module-attribute

SIMILARITY_SCORE = 'score' module-attribute

METADATA_KEYS

Metadata keys used in the cache compatible vector data store.

Attributes:

Name Type Description
EMBEDDINGS str

Key for the embeddings in the cache.

DOCUMENTS str

Key for the documents in the cache.

METADATA str

Key for the metadata in the cache.

ORIGINAL_KEY str

Key to store the original key value.

CACHE_VALUE str

Key for the cached value.

CACHE_CREATED str

Key for the timestamp when the cache was created.

TTL str

Key for the time-to-live of the cache.

EXPIRE_AT str

Key for the expiration time of the cache.

LAST_USED_AT str

Key for the last used time of the cache.

ACCESS_COUNT str

Key for the access count of the cache.

ACCESS_COUNT = 'access_count' class-attribute instance-attribute

CACHE_CREATED = 'cache_created' class-attribute instance-attribute

CACHE_VALUE = 'cache_value' class-attribute instance-attribute

DOCUMENTS = 'documents' class-attribute instance-attribute

EMBEDDINGS = 'embeddings' class-attribute instance-attribute

EXPIRE_AT = 'expire_at' class-attribute instance-attribute

LAST_USED_AT = 'last_used_at' class-attribute instance-attribute

METADATA = 'metadata' class-attribute instance-attribute

METADATAS = 'metadatas' class-attribute instance-attribute

ORIGINAL_KEY = 'original_key' class-attribute instance-attribute

TTL = 'ttl' class-attribute instance-attribute