From 1502fbc9e99254d12d83ec263bffaa85bf0c65f8 Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Sun, 11 Sep 2022 17:30:02 +0300 Subject: [PATCH] Add index_heading_entries flag to default and sample khoj configs --- config/khoj_docker.yml | 1 + config/khoj_sample.yml | 1 + src/utils/constants.py | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/config/khoj_docker.yml b/config/khoj_docker.yml index 7e3fe8b4..cc3d9218 100644 --- a/config/khoj_docker.yml +++ b/config/khoj_docker.yml @@ -7,6 +7,7 @@ content-type: input-filter: "/data/org/*.org" compressed-jsonl: "/data/embeddings/notes.jsonl.gz" embeddings-file: "/data/embeddings/note_embeddings.pt" + index_heading_entries: false markdown: input-files: null diff --git a/config/khoj_sample.yml b/config/khoj_sample.yml index ed1a0591..a1efcf3e 100644 --- a/config/khoj_sample.yml +++ b/config/khoj_sample.yml @@ -4,6 +4,7 @@ content-type: input-filter: # /path/to/org/*.org REQUIRED IF input-files IS NOT SET compressed-jsonl: "~/.khoj/content/org/org.jsonl.gz" embeddings-file: "~/.khoj/content/org/org_embeddings.pt" + index_heading_entries: false # Set to true to index entries with empty body markdown: input-files: # ["/path/to/markdown-file.md"] REQUIRED IF input-filter IS NOT SET OR diff --git a/src/utils/constants.py b/src/utils/constants.py index 8b443944..e4840134 100644 --- a/src/utils/constants.py +++ b/src/utils/constants.py @@ -11,7 +11,8 @@ default_config = { 'input-files': None, 'input-filter': None, 'compressed-jsonl': '~/.khoj/content/org/org.jsonl.gz', - 'embeddings-file': '~/.khoj/content/org/org_embeddings.pt' + 'embeddings-file': '~/.khoj/content/org/org_embeddings.pt', + 'index_heading_entries': False }, 'markdown': { 'input-files': None,