Add default Ollama embedding context length

- Set default context length to 8192
- Overide the default context lenght for LLM in binding_options.py
This commit is contained in:
yangdx 2025-08-08 13:51:25 +08:00
parent c2eefec707
commit f5ac6a9f4b

View File

@ -180,7 +180,7 @@ EMBEDDING_BINDING_HOST=http://localhost:11434
# EMBEDDING_BINDING_API_KEY=your_api_key
### Optional for Ollama embedding
# OLLAMA_EMBEDDING_NUM_CTX=8192
OLLAMA_EMBEDDING_NUM_CTX=8192
### use the following command to see all support options for Ollama embedding
### lightrag-server --embedding-binding ollama --help