fix: provided OpenAI API key and fixed docker-compose configuration to enable RAG service
This commit is contained in:
11
.env.example
11
.env.example
@@ -2,6 +2,9 @@
|
||||
# Deepseek API Key (for LLM in alfred)
|
||||
DEEPSEEK_API_KEY=
|
||||
|
||||
# - ChatGPT/Open API
|
||||
OPENAI_API_KEY=
|
||||
|
||||
OLLAMA_BASE_URL=
|
||||
OLLAMA_MODEL=
|
||||
|
||||
@@ -25,8 +28,8 @@ QBITTORRENT_PASSWORD=adminadmin
|
||||
DEBUG_LOGGING=false
|
||||
DEBUG_CONSOLE=false
|
||||
|
||||
# Required security keys
|
||||
JWT_SECRET=
|
||||
JWT_REFRESH_SECRET=
|
||||
CREDS_KEY=
|
||||
# Postgres (RAG)
|
||||
POSTGRES_DB=
|
||||
POSTGRES_USER=
|
||||
POSTGRES_PASSWORD=
|
||||
CREDS_IV=
|
||||
|
||||
@@ -79,7 +79,11 @@ services:
|
||||
container_name: alfred-rag
|
||||
image: ghcr.io/danny-avila/librechat-rag-api-dev-lite:${RAG_VERSION}
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- DB_HOST=vectordb
|
||||
- DB_PORT=5432
|
||||
- RAG_PORT=${RAG_PORT:-8000}
|
||||
ports:
|
||||
- "${RAG_PORT:-8000}:${RAG_PORT:-8000}"
|
||||
@@ -89,10 +93,8 @@ services:
|
||||
container_name: alfred-vectordb
|
||||
image: pgvector/pgvector:0.8.0-pg16-bookworm
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- POSTGRES_DB=${VECTOR_DB_NAME:-vectordb}
|
||||
- POSTGRES_USER=${VECTOR_DB_USER:-postgres}
|
||||
- POSTGRES_PASSWORD=${VECTOR_DB_PASSWORD:-postgres}
|
||||
env_file:
|
||||
- .env
|
||||
ports:
|
||||
- "${VECTOR_DB_PORT:-5432}:5432"
|
||||
volumes:
|
||||
|
||||
Reference in New Issue
Block a user