pangukitsappdev.api.memory package¶
Subpackages¶
- pangukitsappdev.api.memory.cache package
- Submodules
- pangukitsappdev.api.memory.cache.base module
- pangukitsappdev.api.memory.cache.cache_config module
CacheStoreConfig
CacheStoreConfig.distance_strategy
CacheStoreConfig.embedding
CacheStoreConfig.expire_after_access
CacheStoreConfig.expire_after_write
CacheStoreConfig.maximum_size
CacheStoreConfig.score_threshold
CacheStoreConfig.server_info
CacheStoreConfig.session_tag
CacheStoreConfig.store_name
CacheStoreConfig.vector_store_name
ServerInfoRedis
ServerInfoSql
- pangukitsappdev.api.memory.cache.factory module
- Module contents
- pangukitsappdev.api.memory.vector package
- Submodules
- pangukitsappdev.api.memory.vector.base module
- pangukitsappdev.api.memory.vector.factory module
- pangukitsappdev.api.memory.vector.vector_config module
ServerInfoCss
VectorStoreConfig
VectorStoreConfig.bulk_size
VectorStoreConfig.distance_strategy
VectorStoreConfig.embedding
VectorStoreConfig.http_config
VectorStoreConfig.index_name
VectorStoreConfig.metadata_key
VectorStoreConfig.server_info
VectorStoreConfig.source_fields
VectorStoreConfig.store_name
VectorStoreConfig.text_key
VectorStoreConfig.ttl
VectorStoreConfig.vector_fields
VectorStoreConfig.verify_certs
- Module contents
Submodules¶
pangukitsappdev.api.memory.message_history_config module¶
- class pangukitsappdev.api.memory.message_history_config.MessageHistoryConfig(_env_file: Optional[Union[str, PathLike, List[Union[str, PathLike]], Tuple[Union[str, PathLike], ...]]] = '<object object>', _env_file_encoding: Optional[str] = None, _env_nested_delimiter: Optional[str] = None, _secrets_dir: Optional[Union[str, PathLike]] = None, *, store_name: Optional[str] = None, server_info: ServerInfo = None, key_prefix: str = 'message_store:', table_name: str = 'tbl_chat_message_history', ttl: int = 86400, session_tag: str = '')¶
-
缓存存储的相关配置 Attributes:
store_name: 存储名称 server_info: ServerInfo,存储服务器连接相关信息,默认使用redis的连接 key_prefix: redis key前缀 table_name: sql 表名称 ttl: 缓存的老化时间,单位 秒 session_tag: 用户指定history会话标志
- key_prefix: str¶
- server_info: ServerInfo¶
- session_tag: str¶
- store_name: Optional[str]¶
- table_name: str¶
- ttl: int¶