diff --git a/docker-compose.yml b/docker-compose.yml index 5f1bb1f9..bc3da2a9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -25,9 +25,11 @@ services: - ./tests/data/embeddings/:/root/.khoj/content/ - ./tests/data/models/:/root/.khoj/search/ - khoj_config:/root/.khoj/ + - sentence_tranformer_models:/root/.cache/torch/sentence_transformers # 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 -vv volumes: khoj_config: + sentence_tranformer_models: diff --git a/pyproject.toml b/pyproject.toml index b3529aa9..f0cc2234 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,7 +52,7 @@ dependencies = [ "schedule == 1.1.0", "sentence-transformers == 2.2.2", "transformers >= 4.28.0", - "torch >= 2.0.1", + "torch == 2.0.1", "uvicorn == 0.17.6", "aiohttp == 3.8.5", "langchain >= 0.0.187",