mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-23 23:48:56 +01:00
f78d6ae754
- Reason - Simplifies code. No merge_dict required - 1 place for user to see all configurables, defaults and required values - Details - Remove default_config from code. Set defaults in khoj_sample.yml itself - Keep fields required to be set by user as empty in khoj_sample to YAML - Set defaults for fields not requiring configuration by user
51 lines
2.1 KiB
YAML
51 lines
2.1 KiB
YAML
content-type:
|
|
org:
|
|
input-files: # ["/path/to/org-file.org"] REQUIRED IF input-filter IS NOT SET OR
|
|
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"
|
|
|
|
markdown:
|
|
input-files: # ["/path/to/markdown-file.md"] REQUIRED IF input-filter IS NOT SET OR
|
|
input-filter: # "/path/to/markdown/*.md" REQUIRED IF input-files IS NOT SET
|
|
compressed-jsonl: "~/.khoj/content/markdown/markdown.jsonl.gz"
|
|
embeddings-file: "~/.khoj/content/markdown/markdown_embeddings.pt"
|
|
|
|
ledger:
|
|
input-files: # ["/path/to/ledger-file.beancount"] REQUIRED IF input-filter is not set OR
|
|
input-filter: # /path/to/ledger/*.beancount REQUIRED IF input-files is not set
|
|
compressed-jsonl: "~/.khoj/content/ledger/ledger.jsonl.gz"
|
|
embeddings-file: "~/.khoj/content/ledger/ledger_embeddings.pt"
|
|
|
|
image:
|
|
input-directories: # ["/path/to/images/"] REQUIRED IF input-filter IS NOT SET OR
|
|
input-filter: # /path/to/images/*.jpg REQUIRED IF input-directories IS NOT SET
|
|
embeddings-file: "~/.khoj/content/image/image_embeddings.pt"
|
|
batch-size: 50
|
|
use-xmp-metadata: true
|
|
|
|
music:
|
|
input-files: # ["/path/to/music-file.org"] REQUIRED IF input-filter IS NOT SET OR
|
|
input-filter: # /path/to/music/*.org REQUIRED IF input-files IS NOT SET
|
|
compressed-jsonl: "~/.khoj/content/music/music.jsonl.gz"
|
|
embeddings-file: "~/.khoj/content/music/music_embeddings.pt"
|
|
|
|
search-type:
|
|
symmetric:
|
|
encoder: "sentence-transformers/all-MiniLM-L6-v2"
|
|
cross-encoder: "cross-encoder/ms-marco-MiniLM-L-6-v2"
|
|
model_directory: "~/.khoj/search/symmetric/"
|
|
|
|
asymmetric:
|
|
encoder: "sentence-transformers/multi-qa-MiniLM-L6-cos-v1"
|
|
cross-encoder: "cross-encoder/ms-marco-MiniLM-L-6-v2"
|
|
model_directory: "~/.khoj/search/asymmetric/"
|
|
|
|
image:
|
|
encoder: "sentence-transformers/clip-ViT-B-32"
|
|
model_directory: "~/.khoj/search/image/"
|
|
|
|
processor:
|
|
conversation:
|
|
openai-api-key: # "YOUR_OPENAI_API_KEY"
|
|
conversation-logfile: "~/.khoj/processor/conversation/conversation_logs.json"
|