[Issue]: Configuration Issue with `local_search.max_tokens` Parameter in `settings.yaml`
Describe the issue
I have encountered an issue with the configuration of the local_search.max_tokens parameter in the settings.yaml file. Currently, this parameter does not seem to influence the local search functionality as expected.
The local_search.max_tokens parameter is not being utilized when executing a local search task. Upon investigation, I found that the actual parameter being used to build the llm_params for an instance of LocalSearch is llm_max_tokens, as defined in the source code here.
To ensure that the settings.yaml configuration is respected, I recommend adding the llm_max_tokens parameter to the init_content.py file. This would allow the settings.yaml to include the llm_max_tokens parameter, enabling customization of the local search as intended.
Steps to reproduce
- Configure local_search.max_tokens in settings.yaml.
- Execute a local search task.
- Observe that the configured value does not affect the search behavior.
GraphRAG Config Used
No response
Logs and screenshots
No response
Additional Information
- GraphRAG Version:
- Operating System:
- Python Version:
- Related Issues:
I will propose a PR to resolve this.
This issue has been marked stale due to inactivity after repo maintainer or community member responses that request more information or suggest a solution. It will be closed after five additional days.