mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-24 07:55:07 +01:00
Update default configuration passed to Khoj clients to circumvent valiation issues
This commit is contained in:
parent
4a5ed7f06c
commit
052b25af0a
1 changed files with 53 additions and 0 deletions
|
@ -6,6 +6,59 @@ empty_escape_sequences = "\n|\r|\t| "
|
||||||
app_env_filepath = "~/.khoj/env"
|
app_env_filepath = "~/.khoj/env"
|
||||||
telemetry_server = "https://khoj.beta.haletic.com/v1/telemetry"
|
telemetry_server = "https://khoj.beta.haletic.com/v1/telemetry"
|
||||||
|
|
||||||
|
empty_config = {
|
||||||
|
"content-type": {
|
||||||
|
"org": {
|
||||||
|
"input-files": None,
|
||||||
|
"input-filter": None,
|
||||||
|
"compressed-jsonl": "~/.khoj/content/org/org.jsonl.gz",
|
||||||
|
"embeddings-file": "~/.khoj/content/org/org_embeddings.pt",
|
||||||
|
"index-heading-entries": False,
|
||||||
|
},
|
||||||
|
"markdown": {
|
||||||
|
"input-files": None,
|
||||||
|
"input-filter": None,
|
||||||
|
"compressed-jsonl": "~/.khoj/content/markdown/markdown.jsonl.gz",
|
||||||
|
"embeddings-file": "~/.khoj/content/markdown/markdown_embeddings.pt",
|
||||||
|
},
|
||||||
|
"pdf": {
|
||||||
|
"input-files": None,
|
||||||
|
"input-filter": None,
|
||||||
|
"compressed-jsonl": "~/.khoj/content/pdf/pdf.jsonl.gz",
|
||||||
|
"embeddings-file": "~/.khoj/content/pdf/pdf_embeddings.pt",
|
||||||
|
},
|
||||||
|
"plaintext": {
|
||||||
|
"input-files": None,
|
||||||
|
"input-filter": None,
|
||||||
|
"compressed-jsonl": "~/.khoj/content/plaintext/plaintext.jsonl.gz",
|
||||||
|
"embeddings-file": "~/.khoj/content/plaintext/plaintext_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": None,
|
||||||
|
"chat-model": "gpt-3.5-turbo",
|
||||||
|
},
|
||||||
|
"enable-offline-chat": False,
|
||||||
|
"conversation-logfile": "~/.khoj/processor/conversation/conversation_logs.json",
|
||||||
|
}
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
# default app config to use
|
# default app config to use
|
||||||
default_config = {
|
default_config = {
|
||||||
"content-type": {
|
"content-type": {
|
||||||
|
|
Loading…
Reference in a new issue