new file: .dockerignore
new file: .env.example new file: Dockerfile new file: app.py new file: blueprints/__init__.py new file: blueprints/auth.py new file: blueprints/chat.py new file: blueprints/context.py new file: blueprints/documents.py new file: blueprints/main.py new file: config.py new file: docker-compose.yml new file: models/__init__.py new file: models/chat_session.py new file: models/document.py new file: models/user.py new file: requirements.txt new file: services/__init__.py new file: services/document_parser.py new file: services/llm_service.py new file: services/rag_service.py new file: services/url_scraper.py new file: static/css/style.css new file: static/js/chat.js new file: static/js/inline_chat.js new file: static/js/main.js new file: templates/base.html new file: templates/document_view.html new file: templates/index.html new file: templates/login.html new file: templates/register.html
This commit is contained in:
27
.env.example
Normal file
27
.env.example
Normal file
@@ -0,0 +1,27 @@
|
||||
# Copy this file to .env and fill in your values
|
||||
|
||||
# ── Flask ──────────────────────────────────────────────────────────────────────
|
||||
SECRET_KEY=change-me-to-a-random-secret-string
|
||||
FLASK_ENV=production
|
||||
|
||||
# ── Database (SQLite default — no change needed for single-instance) ───────────
|
||||
# DATABASE_URI=sqlite:////app/app.db
|
||||
|
||||
# ── AI Provider ────────────────────────────────────────────────────────────────
|
||||
# "lmstudio" → uses LM_STUDIO_URL below (default)
|
||||
# "openai" → uses OPENAI_API_KEY below
|
||||
AI_PROVIDER=lmstudio
|
||||
|
||||
# LM Studio (running externally, e.g. on the host machine)
|
||||
# On Linux/Docker: use host.docker.internal to reach the host
|
||||
LM_STUDIO_URL=http://host.docker.internal:1234
|
||||
LM_STUDIO_MODEL=local-model
|
||||
|
||||
# OpenAI (only needed when AI_PROVIDER=openai)
|
||||
# OPENAI_API_KEY=sk-...
|
||||
# OPENAI_MODEL=gpt-4o
|
||||
|
||||
# ── RAG tuning (optional) ──────────────────────────────────────────────────────
|
||||
RAG_TOP_K=5
|
||||
RAG_CHUNK_SIZE=500
|
||||
RAG_CHUNK_OVERLAP=50
|
||||
Reference in New Issue
Block a user