yangdx b03bb48e24 feat: Refine summary logic and add dedicated Ollama num_ctx config
- Refactor the trigger condition for LLM-based summarization of entities and relations. Instead of relying on character length, the summary is now triggered when the number of merged description fragments exceeds a configured threshold. This provides a more robust and logical condition for consolidation.
- Introduce the `OLLAMA_NUM_CTX` environment variable to explicitly configure the context window size (`num_ctx`) for Ollama models. This decouples the model's context length from the `MAX_TOKENS` parameter, which is now specifically used to limit input for summary generation, making the configuration clearer and more flexible.
- Updated `README` files, `env.example`, and default values to reflect these changes.
2025-07-14 01:55:04 +08:00
..
2025-07-08 18:17:21 +08:00
2025-02-20 15:09:43 +01:00
2025-07-09 04:43:20 +08:00
2025-07-08 13:31:05 +08:00
2025-07-01 17:13:33 +08:00
2025-02-15 22:37:12 +01:00
2025-02-15 22:37:12 +01:00
2025-07-06 00:16:47 +08:00
2025-07-08 11:16:34 +08:00
2025-06-29 01:28:39 +05:00