Taddeus
f494b96a7b
MLO-340: Update lightrag settings ( #10 )
...
* Updates LLM and embedding configurations to use OpenRouter and Gemini
* Renames and significantly expands environment configuration template
Renames the environment example file to a standard hidden env template to align with common conventions.
Extensively updates and reorganizes configuration options, adding detailed setup for LLM, embedding, storage backends, PostgreSQL, and overall LightRAG processing parameters.
Comments out some legacy and optional configuration lines to streamline initial setup and clarify default recommended values.
Updates gitignore to exclude various env-related files to protect sensitive keys and improve environment management.
* Updates default config with improved LLM and processing settings
* Adds openai-compatible environment file to .gitignore
* Adds new environment files to ignore list
2025-07-24 17:49:50 +03:00
yangdx
12fbc5b851
Updated env.example with better documentation and clarity
...
- Renamed file from .env.example to env.example
2025-03-02 19:12:11 +08:00
yangdx
aac1bdd9e6
feat: add configurable log rotation settings via environment variables
...
• Add LOG_DIR env var for log file location
• Add LOG_MAX_BYTES for max log file size
• Add LOG_BACKUP_COUNT for backup count
2025-02-28 23:21:14 +08:00
yangdx
7436c06f6c
Fix linting
2025-02-26 18:11:16 +08:00
yangdx
7262f61b0e
add redis configuration and update workers default value
2025-02-25 10:47:27 +08:00
yangdx
4a9cfdcb10
Update storage configurations in .env.example
2025-02-23 17:56:10 +08:00
yangdx
78e0ca7835
Change defautl timeout for LLM to 150s
2025-02-23 17:03:35 +08:00
yangdx
57884f2fb8
Refine LLM settings in env sample file
2025-02-23 16:52:41 +08:00
yangdx
460bc3a6aa
update README.md and .env.example
2025-02-23 13:26:38 +08:00
yangdx
806eadf5dc
Add verbose debug option to control detailed debug output level
...
• Added VERBOSE env var & CLI flag
• Implemented verbose_debug() function
• Added verbose option to splash screen
• Reduced default debug output length
• Modified LLM debug logging behavior
2025-02-17 01:38:18 +08:00
yangdx
7f13b779e1
Fix linting
2025-02-16 20:15:14 +08:00
yangdx
601df31edf
feat: move query-related settings to env file for better configuration
...
• Add env vars for token and chunk settings
• Add token count logging for prompts
• Add token count logging for context
• Move hardcoded values to env variables
• Improve logging clarity and consistency
2025-02-16 19:26:57 +08:00
yangdx
2985d88f97
refactor: improve CORS and streaming response headers
...
- Add configurable CORS origins
- Remove duplicate CORS headers
- Add X-Accel-Buffering header
- Update env example file
- Clean up header configurations
2025-02-15 11:39:10 +08:00
yangdx
f6058b79b6
Update .env.example with absolute path placeholders
2025-02-14 13:26:19 +08:00
yangdx
28b17b327b
Fix: top_k param handling error, unify top_k and cosine default value.
2025-02-13 06:05:21 +08:00
yangdx
cf61bed62c
Reorganize env config sections, add data store config to env file.
...
• Add namespace prefix config option
• Make AGE graph name optional
• Update env variable requirements
• Add comments for deprecated options
2025-02-12 21:48:48 +08:00
yangdx
aaddc08336
Add storage info to splash screen
2025-02-11 14:57:37 +08:00
yangdx
cddde8053d
Add configuration examples for Oracle, TiDB, PostgreSQL and storage backends
2025-02-11 06:31:59 +08:00
yangdx
46c9c7d95b
Update sample env file and documentation
...
- Change COSINE_THRESHOLD to 0.4
- Adjust TOP_K to 50
- Enhance API README details
2025-01-29 23:45:20 +08:00
yangdx
7aedc08caf
Add RAG configuration options and enhance parameter configurability
...
- Add top-k and cosine-threshold parms for api server
- Update .env and cli parms handling with new parameters
- Improve splash screen display
- Update bash and storage classes to read new parameters from .env file.
2025-01-29 21:34:34 +08:00
yangdx
e4e42a8ec4
Fetch chunk size and chunk overlap size from .env file
2025-01-26 02:31:16 +08:00
yangdx
fb9df50ada
Add conversation history support to chat API
...
- Added HISTORY_TURNS env variable
- Updated chat request data creation
- Modified server to handle history
- Added history to test cases
2025-01-25 22:14:40 +08:00
yangdx
0920942a06
update enviroment variable file sample
2025-01-23 03:17:50 +08:00
yangdx
a85c148249
Add sample environment variable for Ollama model tag
2025-01-21 03:31:50 +08:00
yangdx
a76abf23f2
Updated OpenAI configuration and documentation.
...
- Added OpenAI alike example in .env.example
- Updated README for OpenAI alike server
- Modified API key handling in lightrag_server.py
2025-01-20 14:50:06 +08:00
yangdx
347843d545
Use LLM_MODEL env var in Azure OpenAI function
...
- Remove model parameter from azure_openai_complete (all LLM complete functions must have the same parameter structure)
- Use LLM_MODEL env var in Azure OpenAI function
- Comment out Lollms example in .env.example (duplication with Ollama example)
2025-01-19 14:04:03 +08:00
yangdx
8ea179a98b
Migrate Ollama API to lightrag_server.py
2025-01-19 04:44:30 +08:00
Saifeddine ALOUI
5fe28d31e9
Fixed linting
2025-01-17 01:36:16 +01:00
Saifeddine ALOUI
c91b57196d
Fixed docker access to ollama and lollms
2025-01-17 01:18:28 +01:00
Saifeddine ALOUI
84f7f15046
Added optional Azure configuration
2025-01-17 00:54:24 +01:00
Saifeddine ALOUI
b2e7c75f5a
Added Docker container setup
2025-01-16 22:28:28 +01:00