Skip to content

Commit cf9bad2

Browse files
committed
fix: apply review changes
1 parent 3af6539 commit cf9bad2

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/mmore/rag/pipeline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def __call__(
140140
return_dict: bool = False,
141141
config: Optional[RunnableConfig] = None,
142142
) -> List[Dict[str, Any]]:
143-
if isinstance(queries, Dict):
143+
if isinstance(queries, dict):
144144
queries_list = [queries]
145145
else:
146146
queries_list = queries

src/mmore/run_ragcli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def launch_cli(self):
6262
break
6363
elif cmd == "help":
6464
print(
65-
f"Press {str_green('Enter')} (or type rag) to start asking questions about your documents.\nOther commands are: config, setK, setModel, webRag, exit, help. To learn more about usage of a specific command, use the following: \n help <command>"
65+
f"Press {str_green('Enter')} (or type rag) to start asking questions about your documents.\nOther commands are: config, setK, setModel, setWebrag, exit. To learn more about usage of a specific command, use the following: \n help <command>"
6666
)
6767
elif cmd.startswith("help "):
6868
command = cmd.split(" ", 1)[1]
@@ -84,9 +84,9 @@ def launch_cli(self):
8484
print(
8585
"Use the command in the following way: 'setModel <model_path>', where model_path is the huggingface path to the model you'd like to use."
8686
)
87-
elif command == "webRag":
87+
elif command == "setWebrag":
8888
print(
89-
"Use the command in the following way: 'webrag <bool>', where bool is either True or False. This will determine if a web search is done during RAG."
89+
"Use the command in the following way: 'setWebrag <bool>', where bool is either True or False. This will determine if a web search is done during RAG."
9090
)
9191
elif command == "exit":
9292
print("Exit the CLI.")

0 commit comments

Comments
 (0)