-
Notifications
You must be signed in to change notification settings - Fork 0
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
streamlit chat ui #16
Conversation
@nitinsurya draft pr, still few bugs to fix but working overall. Playaround with it and let me know |
This PR addresses the following:
Bugs that still need to be addressed with the changes:
@nitinsurya take a look and let me know |
@property | ||
def get_api_key_val(self) -> str: | ||
"""Fetch API key dynamically from the correct environment variable.""" | ||
api_key = os.environ.get(self.provider.api_key_env_var) |
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.
we should move to pydantic settings. once you merge, can take it up.
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.
Yep, I'll create a issue and assign it to you
"""Enum mapping embedding models to their providers.""" | ||
|
||
# OpenAI Embeddings | ||
TEXT_EMBEDDING_ADA_002 = ( |
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.
I feel we should separate out enums and EmbeddingModel
, and mark EmbeddingModel
as a class.
Added some thoughts. Those can be followup tasks we can take up as well, but overall, this is a big bump 🎉 . |
Issue #12