From 17c38b526a1b454243be86875e22c8bd4b5a2bb8 Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Sun, 31 Jul 2022 22:14:20 +0300 Subject: [PATCH] Default config for each search types to None - Setting up default compressed-jsonl, embeddings-file was only required for org search_type, while org-files and org-filter were allowed to be passed as command line argument - This avoided having to set compressed-jsonl and embeddings-file via command line argument as well for org search type - Now that all search types are only configurable via config file, We can default all search types to None. The default config for the rest of the search types wasn't being used anyway --- src/utils/cli.py | 26 +++++--------------------- 1 file changed, 5 insertions(+), 21 deletions(-) diff --git a/src/utils/cli.py b/src/utils/cli.py index 7d8b3328..549ad056 100644 --- a/src/utils/cli.py +++ b/src/utils/cli.py @@ -44,27 +44,11 @@ def cli(args=None): default_config = { 'content-type': { - 'org': - { - 'compressed-jsonl': '.notes.jsonl.gz', - 'embeddings-file': '.note_embeddings.pt' - }, - 'ledger': - { - 'compressed-jsonl': '.transactions.jsonl.gz', - 'embeddings-file': '.transaction_embeddings.pt' - }, - 'image': - { - 'embeddings-file': '.image_embeddings.pt', - 'batch-size': 50, - 'use-xmp-metadata': 'no' - }, - 'music': - { - 'compressed-jsonl': '.songs.jsonl.gz', - 'embeddings-file': '.song_embeddings.pt' - }, + 'org': None, + 'ledger': None, + 'image': None, + 'music': None, + 'markdown': None, }, 'search-type': {