File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed
src/memos/mem_scheduler/modules Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,12 @@ def run_with_scheduler_init():
9191 mos_config .mem_reader .config .llm .config .api_base = auth_config .openai .base_url
9292
9393 mem_cube_config .text_mem .config .graph_db .config .uri = auth_config .graph_db .uri
94+ mem_cube_config .text_mem .config .graph_db .config .user = auth_config .graph_db .user
95+ mem_cube_config .text_mem .config .graph_db .config .password = auth_config .graph_db .password
96+ mem_cube_config .text_mem .config .graph_db .config .db_name = auth_config .graph_db .db_name
97+ mem_cube_config .text_mem .config .graph_db .config .auto_create = (
98+ auth_config .graph_db .auto_create
99+ )
94100
95101 # Initialization
96102 mos = MOS (mos_config )
Original file line number Diff line number Diff line change @@ -103,6 +103,12 @@ def init_task():
103103 mos_config .mem_reader .config .llm .config .api_base = auth_config .openai .base_url
104104
105105 mem_cube_config .text_mem .config .graph_db .config .uri = auth_config .graph_db .uri
106+ mem_cube_config .text_mem .config .graph_db .config .user = auth_config .graph_db .user
107+ mem_cube_config .text_mem .config .graph_db .config .password = auth_config .graph_db .password
108+ mem_cube_config .text_mem .config .graph_db .config .db_name = auth_config .graph_db .db_name
109+ mem_cube_config .text_mem .config .graph_db .config .auto_create = (
110+ auth_config .graph_db .auto_create
111+ )
106112
107113 # Initialization
108114 mos = MOSForTestScheduler (mos_config )
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ def search(
4747 """
4848 text_mem_base = mem_cube .text_mem
4949 try :
50- if method == [TreeTextMemory_SEARCH_METHOD , TreeTextMemory_FINE_SEARCH_METHOD ]:
50+ if method in [TreeTextMemory_SEARCH_METHOD , TreeTextMemory_FINE_SEARCH_METHOD ]:
5151 assert isinstance (text_mem_base , TreeTextMemory )
5252 mode = "fast" if method == TreeTextMemory_SEARCH_METHOD else "fine"
5353 results_long_term = text_mem_base .search (
You can’t perform that action at this time.
0 commit comments