Skip to content

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

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open

Cleanup configs #87

wants to merge 16 commits into from

Conversation

murbans1
Copy link
Collaborator

@murbans1 murbans1 commented Mar 19, 2025

Define config objects to make env variable handling easier.

@murbans1 murbans1 marked this pull request as draft March 19, 2025 12:48
@murbans1 murbans1 requested a review from selvik March 19, 2025 13:35
@murbans1 murbans1 changed the title [WIP] Cleanup configs Cleanup configs Mar 19, 2025
@murbans1 murbans1 marked this pull request as ready for review March 19, 2025 13:36
system_prompt,
relevant_docs,
llm_server_url,
sql_search_db_and_model_path,
alpha,
Copy link

@selvik selvik Mar 19, 2025

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,
Copy link

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()

Copy link

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!

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