memoryscope.core.config.arguments
- class memoryscope.core.config.arguments.Arguments(language: Literal['cn', 'en'] = 'cn', thread_pool_max_workers: int = 5, memory_chat_class: str = 'cli_memory_chat', chat_stream: bool | None = None, human_name: str = 'user', assistant_name: str = 'AI', consolidate_memory_interval_time: int | None = 1, reflect_and_reconsolidate_interval_time: int | None = 15, worker_params: Dict[str, dict] = <factory>, generation_backend: str = 'dashscope_generation', generation_model: str = 'qwen-max', generation_params: dict = <factory>, embedding_backend: str = 'dashscope_generation', embedding_model: str = 'text-embedding-v2', embedding_params: dict = <factory>, rank_backend: str = 'dashscope_rank', rank_model: str = 'gte-rerank', rank_params: dict = <factory>, es_index_name: str = 'memory_index', es_url: str = 'http://localhost:9200', retrieve_mode: str = 'dense', enable_ranker: bool = False, enable_today_contra_repeat: bool = True, enable_long_contra_repeat: bool = False, output_memory_max_count: int = 20)[source]
Bases:
object
- language: Literal['cn', 'en'] = 'cn'
- thread_pool_max_workers: int = 5
- memory_chat_class: str = 'cli_memory_chat'
- chat_stream: bool | None = None
- human_name: str = 'user'
- assistant_name: str = 'AI'
- consolidate_memory_interval_time: int | None = 1
- reflect_and_reconsolidate_interval_time: int | None = 15
- worker_params: Dict[str, dict]
- generation_backend: str = 'dashscope_generation'
- generation_model: str = 'qwen-max'
- generation_params: dict
- embedding_backend: str = 'dashscope_generation'
- embedding_model: str = 'text-embedding-v2'
- embedding_params: dict
- rank_backend: str = 'dashscope_rank'
- rank_model: str = 'gte-rerank'
- rank_params: dict
- es_index_name: str = 'memory_index'
- es_url: str = 'http://localhost:9200'
- retrieve_mode: str = 'dense'
- enable_ranker: bool = False
- enable_today_contra_repeat: bool = True
- enable_long_contra_repeat: bool = False
- output_memory_max_count: int = 20
- __init__(language: ~typing.Literal['cn', 'en'] = 'cn', thread_pool_max_workers: int = 5, memory_chat_class: str = 'cli_memory_chat', chat_stream: bool | None = None, human_name: str = 'user', assistant_name: str = 'AI', consolidate_memory_interval_time: int | None = 1, reflect_and_reconsolidate_interval_time: int | None = 15, worker_params: ~typing.Dict[str, dict] = <factory>, generation_backend: str = 'dashscope_generation', generation_model: str = 'qwen-max', generation_params: dict = <factory>, embedding_backend: str = 'dashscope_generation', embedding_model: str = 'text-embedding-v2', embedding_params: dict = <factory>, rank_backend: str = 'dashscope_rank', rank_model: str = 'gte-rerank', rank_params: dict = <factory>, es_index_name: str = 'memory_index', es_url: str = 'http://localhost:9200', retrieve_mode: str = 'dense', enable_ranker: bool = False, enable_today_contra_repeat: bool = True, enable_long_contra_repeat: bool = False, output_memory_max_count: int = 20) None