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

Configuration Manager Redesign #1272

Merged
merged 26 commits into from
Oct 19, 2023
Merged

Configuration Manager Redesign #1272

merged 26 commits into from
Oct 19, 2023

Conversation

gaurav274
Copy link
Member

@gaurav274 gaurav274 commented Oct 10, 2023

  1. Removed config.yml file. Users can directly use SET command.
  2. Moved OPENAI_KEY to OPENAI_API_KEY

hershd23 and others added 10 commits October 5, 2023 23:28
	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
@gaurav274 gaurav274 changed the title Configuration redesign [WIP] Configuration Manager Redesign Oct 10, 2023
Copy link
Contributor

@hershd23 hershd23 left a 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

evadb/catalog/models/configuration_catalog.py Outdated Show resolved Hide resolved
evadb/configuration/bootstrap_environment.py Outdated Show resolved Hide resolved
@gaurav274 gaurav274 marked this pull request as ready for review October 11, 2023 01:35
@xzdandy
Copy link
Collaborator

xzdandy commented Oct 11, 2023

I fixed the merge conflict. Please check if I do it in the right way.

)
# 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
Copy link
Collaborator

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.

Copy link
Member Author

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.

Copy link
Member Author

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"]
Copy link
Collaborator

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.

@xzdandy xzdandy added User Experience High Effort 🏋 Difficult solution or problem to solve labels Oct 11, 2023
@xzdandy xzdandy added this to the v0.3.8 milestone Oct 11, 2023
@xzdandy xzdandy linked an issue Oct 11, 2023 that may be closed by this pull request
5 tasks
@hershd23 hershd23 mentioned this pull request Oct 13, 2023
2 tasks
@gaurav274 gaurav274 changed the title [WIP] Configuration Manager Redesign Configuration Manager Redesign Oct 19, 2023
@xzdandy xzdandy modified the milestones: v0.3.8, v0.3.9 Oct 19, 2023
@gaurav274 gaurav274 merged commit 4640d8f into staging Oct 19, 2023
@gaurav274 gaurav274 deleted the configuration_redesign branch October 19, 2023 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
High Effort 🏋 Difficult solution or problem to solve User Experience
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Configuration Manager Redesign
3 participants