Fix configure openai processor for khoj docker

Store khoj search models and embeddings in default location in docker
container under /root/.khoj
This commit is contained in:
Debanjum Singh Solanky 2023-07-30 02:07:33 -07:00
parent dffbfee62b
commit 28df08b907
2 changed files with 3 additions and 5 deletions

View file

@ -45,9 +45,7 @@ processor:
conversation:
conversation-logfile: "/data/embeddings/conversation_logs.json"
enable-offline-chat: false
openai:
api-key: null
chat-model: "chat-gpt-3.5"
openai: null
app:
should_log_telemetry: true

View file

@ -22,7 +22,7 @@ services:
- ./tests/data/pdf/:/data/pdf/
# Embeddings and models are populated after the first run
# You can set these volumes to point to empty directories on host
- ./tests/data/embeddings/:/data/embeddings/
- ./tests/data/models/:/data/models/
- ./tests/data/embeddings/:/root/.khoj/content/
- ./tests/data/models/:/root/.khoj/search/
# Use 0.0.0.0 to explicitly set the host ip for the service on the container. https://pythonspeed.com/articles/docker-connection-refused/
command: --host="0.0.0.0" --port=42110 -c=config/khoj_docker.yml -vv