Add index_heading_entries flag to default and sample khoj configs

This commit is contained in:
Debanjum Singh Solanky
2022-09-11 17:30:02 +03:00
parent 7216cdff58
commit 1502fbc9e9
3 changed files with 4 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ content-type:
input-filter: "/data/org/*.org" input-filter: "/data/org/*.org"
compressed-jsonl: "/data/embeddings/notes.jsonl.gz" compressed-jsonl: "/data/embeddings/notes.jsonl.gz"
embeddings-file: "/data/embeddings/note_embeddings.pt" embeddings-file: "/data/embeddings/note_embeddings.pt"
index_heading_entries: false
markdown: markdown:
input-files: null input-files: null

View File

@@ -4,6 +4,7 @@ content-type:
input-filter: # /path/to/org/*.org REQUIRED IF input-files IS NOT SET input-filter: # /path/to/org/*.org REQUIRED IF input-files IS NOT SET
compressed-jsonl: "~/.khoj/content/org/org.jsonl.gz" 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 # Set to true to index entries with empty body
markdown: markdown:
input-files: # ["/path/to/markdown-file.md"] REQUIRED IF input-filter IS NOT SET OR input-files: # ["/path/to/markdown-file.md"] REQUIRED IF input-filter IS NOT SET OR

View File

@@ -11,7 +11,8 @@ default_config = {
'input-files': None, 'input-files': None,
'input-filter': None, 'input-filter': None,
'compressed-jsonl': '~/.khoj/content/org/org.jsonl.gz', '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': { 'markdown': {
'input-files': None, 'input-files': None,