Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add top_k and cosine_better_than_threshold support for API server #674

Merged
merged 12 commits into from
Jan 30, 2025

Conversation

danielaskdd
Copy link
Contributor

Add top_k and cosine_better_than_threshold support for API server

User can change top_k and cosine_better_than_threshold config on API server by command line parameters or enviroment variables.

  • Allow configuration of LLM parameters through environment and command line argumentes
  • Fix cosine threshold parameter setting error for vector storages
  • Change cosine_better_than_threshold default value to 0.4 to avoid retrieval of non-related nodes and edges for API server (default value is not changed while not running API server)
  • Update env sample file and README
  • Add timeout parameter to OpenAI alike LLM model configuration

@LarFii LarFii merged commit 9ef1438 into HKUDS:main Jan 30, 2025
1 check passed
@danielaskdd danielaskdd deleted the topk-cosine-threshold-env-config branch January 31, 2025 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants