Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
artemleonich
docrag
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
main
Breadcrumbs
docrag
/
.env.example
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
40 lines (32 loc) · 1.65 KB
main
Breadcrumbs
docrag
/
.env.example
Copy path
Top
File metadata and controls
Code
Blame
40 lines (32 loc) · 1.65 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# ===== DocRAG — переменные окружения (скопируйте в .env) =====
# --- Организация (подставляется в шапки .docx/.pptx и системный промпт) ---
DOCRAG_ORG_NAME=Организация
DOCRAG_ORG_FULL=Организация
DOCRAG_ORG_SITE=
# --- LLM (Ollama) ---
DOCRAG_LLM_BACKEND=ollama
DOCRAG_OLLAMA_HOST=http://localhost:11434
DOCRAG_LLM_MODEL=hf.co/t-tech/T-lite-it-2.1-GGUF:Q4_K_M
DOCRAG_LLM_NUM_CTX=8192
DOCRAG_LLM_TEMPERATURE=0.0
# --- Парсинг PDF ---
# pymupdf (по умолчанию) | docling (точное извлечение таблиц; нужен `uv sync --extra docling`,
# первая индексация скачает ML-модели). При сбое docling — авто-откат на pymupdf.
DOCRAG_PARSER=pymupdf
# --- Эмбеддинги / реранкер ---
DOCRAG_EMBED_MODEL=BAAI/bge-m3
DOCRAG_RERANK_MODEL=BAAI/bge-reranker-v2-m3
DOCRAG_EMBED_DEVICE=mps # mps | cpu | cuda
DOCRAG_EMBED_USE_FP16=true
# --- Qdrant ---
DOCRAG_QDRANT_URL=http://localhost:16333
DOCRAG_QDRANT_COLLECTION=docrag_docs
# --- Ретрив ---
DOCRAG_RETRIEVE_TOP_K=50 # кандидатов из гибридного поиска
DOCRAG_RERANK_TOP_N=6 # сколько оставить после реранка
DOCRAG_HYBRID_DENSE_WEIGHT=0.5
# --- Скрейпер (опционально; по умолчанию источник PDF не задан) ---
DOCRAG_BASE_URL= # целевой домен-источник PDF
DOCRAG_SCRAPER_DELAY=3.0 # секунд между запросами
# --- Пути ---
DOCRAG_DATA_DIR=./data
You can’t perform that action at this time.