From be094bdb78b55aa2849b9b7dfa62d3752f8bafcf Mon Sep 17 00:00:00 2001 From: Chris Steege Date: Tue, 20 Jun 2023 16:07:24 -0500 Subject: [PATCH] Remove verbose and refresh parameters from run_index function calls: Co-authored-by: MindFlow --- mindflow/cli/commands/chat.py | 2 +- mindflow/cli/commands/index.py | 4 ++-- mindflow/core/commands/index.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mindflow/cli/commands/chat.py b/mindflow/cli/commands/chat.py index 91edd71..03e4093 100644 --- a/mindflow/cli/commands/chat.py +++ b/mindflow/cli/commands/chat.py @@ -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() diff --git a/mindflow/cli/commands/index.py b/mindflow/cli/commands/index.py index 47b9fcb..903231e 100644 --- a/mindflow/cli/commands/index.py +++ b/mindflow/cli/commands/index.py @@ -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)) diff --git a/mindflow/core/commands/index.py b/mindflow/core/commands/index.py index 7ffe063..7372d4d 100644 --- a/mindflow/core/commands/index.py +++ b/mindflow/core/commands/index.py @@ -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)