-
Notifications
You must be signed in to change notification settings - Fork 263
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
Configuration Manager Redesign #1272
Conversation
modified: evadb/catalog/catalog_manager.py new file: evadb/catalog/models/configuration_catelog.py modified: evadb/catalog/models/utils.py new file: evadb/catalog/services/configuration_catalog_service.py modified: evadb/catalog/sql_config.py Adding EvaDB base configs to a python dict new file: evadb/eva_config.py
modified: evadb/configuration/bootstrap_environment.py modified: evadb/configuration/configuration_manager.py modified: evadb/configuration/constants.py renamed: evadb/eva_config.py -> evadb/evadb_config.py
…guration_redesign
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.
Just done a scan and left a couple comments. One was unresolved in my commits itself
I fixed the merge conflict. Please check if I do it in the right way. |
evadb/binder/statement_binder.py
Outdated
) | ||
# we also handle the special case of ChatGPT where we need to send the | ||
# OpenAPI key as part of the parameter | ||
# ToDO: this should be better handled |
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.
Do you think have a CREATE call like the following is the right approach?
CREATE FUNCTION myllm
TYPE llm
MODEL GPT4
OPENAI key;
If so, we can mention in the TODO comment.
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 should already work. Will handle it.
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.
Done!
config_obj = merge_dict_of_dicts(config_default_dict, config_obj) | ||
mode = config_obj["core"]["mode"] | ||
mode = config_obj["mode"] |
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 is not useful. We can only change the mode using SET
after already bootstrapping the environment.
config.yml
file. Users can directly useSET
command.OPENAI_KEY
toOPENAI_API_KEY