diff --git a/.env.example b/.env.example index 8e9f76b0..2055a7f8 100644 --- a/.env.example +++ b/.env.example @@ -6,14 +6,27 @@ PORT=9621 WORKING_DIR=/app/data/rag_storage INPUT_DIR=/app/data/inputs -# LLM Configuration +# LLM Configuration (Use valid host. For local services, you can use host.docker.internal) +# Ollama example LLM_BINDING=ollama -LLM_BINDING_HOST=http://localhost:11434 +LLM_BINDING_HOST=http://host.docker.internal:11434 LLM_MODEL=mistral-nemo:latest -# Embedding Configuration +# Lollms example +LLM_BINDING=lollms +LLM_BINDING_HOST=http://host.docker.internal:9600 +LLM_MODEL=mistral-nemo:latest + + +# Embedding Configuration (Use valid host. For local services, you can use host.docker.internal) +# Ollama example EMBEDDING_BINDING=ollama -EMBEDDING_BINDING_HOST=http://localhost:11434 +EMBEDDING_BINDING_HOST=http://host.docker.internal:11434 +EMBEDDING_MODEL=bge-m3:latest + +# Lollms example +EMBEDDING_BINDING=lollms +EMBEDDING_BINDING_HOST=http://host.docker.internal:9600 EMBEDDING_MODEL=bge-m3:latest # RAG Configuration diff --git a/docker-compose.yml b/docker-compose.yml index 5c851a60..ab9a4f97 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,7 +15,8 @@ services: restart: unless-stopped networks: - lightrag_net - + extra_hosts: + - "host.docker.internal:host-gateway" networks: lightrag_net: - driver: bridge + driver: bridge \ No newline at end of file