-
Notifications
You must be signed in to change notification settings - Fork 0
Cleanup configs #87
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
base: main
Are you sure you want to change the base?
Cleanup configs #87
Conversation
bebbd51
to
ed63b8c
Compare
76743c3
to
0dfaf5e
Compare
system_prompt, | ||
relevant_docs, | ||
llm_server_url, | ||
sql_search_db_and_model_path, | ||
alpha, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would we able to replace alpha with weaviate settings here? And also use the sql_search_settings for the other parameters?
system_prompt, | ||
relevant_docs, | ||
llm_server_url, | ||
sql_search_db_and_model_path, | ||
alpha, | ||
max_context_length, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
max_context_length could also be added to llm_settings because it defines how much of the total possible context length of the LLM we will be using.
hybrid_search_settings = HybridSearchSettings() | ||
llm_settings = LlmSettings() | ||
sql_search_settings = SqlSearchSettings() | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This style of setup looks great and makes it so much easier to read!
Define config objects to make env variable handling easier.