Fix: top_k param handling error, unify top_k and cosine default value.

This commit is contained in:
yangdx
2025-02-13 06:05:21 +08:00
parent 76164a1b17
commit 28b17b327b
4 changed files with 18 additions and 11 deletions

View File

@@ -103,7 +103,7 @@ After starting the lightrag-server, you can add an Ollama-type connection in the
LightRAG can be configured using either command-line arguments or environment variables. When both are provided, command-line arguments take precedence over environment variables.
For better performance, the API server's default values for TOP_K and COSINE_THRESHOLD are set to 50 and 0.4 respectively. If COSINE_THRESHOLD remains at its default value of 0.2 in LightRAG, many irrelevant entities and relations would be retrieved and sent to the LLM.
Default `TOP_K` is set to `60`. Default `COSINE_THRESHOLD` are set to `0.2`.
### Environment Variables