Skip to content

Commit

Permalink
Remove verbose and refresh parameters from run_index function calls: …
Browse files Browse the repository at this point in the history
…Co-authored-by: MindFlow <mf@mindflo.ai>
  • Loading branch information
steegecs committed Jun 20, 2023
1 parent ec3f07c commit be094bd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mindflow/cli/commands/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def chat(prompt_args: Tuple[str], skip_index: bool):
"Indexing paths... Note: this may take a while, if you want to skip this step, use the `--skip-index` flag. If you do so, you can pre-select specific paths to index with `mf index`.\n"
)

run_index(paths, verbose=False)
run_index(paths)
click.echo("")
print(run_query(paths, prompt))
save_json_store()
Expand Down
4 changes: 2 additions & 2 deletions mindflow/cli/commands/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
)
@click.argument("document_paths", type=str, nargs=-1, required=True)
@click.option("--refresh", is_flag=True, default=False)
def index(document_paths: List[str], refresh: bool) -> None:
print(run_index(document_paths, refresh))
def index(document_paths: List[str]) -> None:
print(run_index(document_paths))
2 changes: 1 addition & 1 deletion mindflow/core/commands/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def run_index(document_paths: List[str]) -> str:
indexable_documents := get_indexable_documents(
document_references, completion_model
)
):
):
return "No documents to index"

print_total_size_of_documents(indexable_documents)
Expand Down

0 comments on commit be094bd

Please sign in to comment.