Skip to content
This repository was archived by the owner on Apr 12, 2026. It is now read-only.

v5.0.0 | refactor utility module | update Curie system prompt | update dependencies/project version#201

Merged
Daethyra merged 6 commits intostreamlitfrom
5.0.0
Sep 15, 2024
Merged

v5.0.0 | refactor utility module | update Curie system prompt | update dependencies/project version#201
Daethyra merged 6 commits intostreamlitfrom
5.0.0

Conversation

@Daethyra
Copy link
Copy Markdown
Owner

@Daethyra Daethyra commented Sep 15, 2024

refactor(utils): split utility_funcs.py into more manageable modules

  • Moved utility_funcs.py to .archive for deprecation.
  • Updated __init__.py to import from new modules: chatbot_operators, streamlit_operators, and lc_premade.
  • Added chatbot_operators.py with classes and methods for document retrieval and model selection.
  • Added lc_premade.py with callback handlers for streaming model output and context retrieval.
  • Added streamlit_operators.py with functions for setting background images and saving conversation history.

These changes improve code organization and resolve Refactor utility_funcs.py into smaller, more manageable modules #198.

…s and prompt template text

Added the soon-to-be released GPT models to the OpenAI model dictionaries in both chatbot pages. Also, revised Curie's prompt template text for better clarity and guidance in responses.
- Moved `utility_funcs.py` to `.archive` for deprecation.
- Updated `__init__.py` to import from new modules: `chatbot_operators`, `streamlit_operators`, and `lc_premade`.
- Added `chatbot_operators.py` with classes and methods for document retrieval and model selection.
- Added `lc_premade.py` with callback handlers for streaming model output and context retrieval.
- Added `streamlit_operators.py` with functions for setting background images and saving conversation history.

These changes improve code organization and resolve Refactor `utility_funcs.py` into smaller, more manageable modules #198.
@Daethyra
Copy link
Copy Markdown
Owner Author

Daethyra commented Sep 15, 2024

  • Via commit d66eede: Updates Curie's system prompt, poetry.lock file, and the homepage's description of both chatbots.

@Daethyra Daethyra mentioned this pull request Sep 15, 2024
@Daethyra Daethyra added refactor Needs reworking, or is already reworked dependencies Pull requests that update a dependency file labels Sep 15, 2024
@Daethyra Daethyra self-assigned this Sep 15, 2024
@Daethyra Daethyra linked an issue Sep 15, 2024 that may be closed by this pull request
Updated the project dependencies to their latest versions, including langchain, langchain-openai, and streamlit. This change also includes a downgrade of setuptools. The project version has been incremented from 4.4.6-1 to 5.0.0 to reflect significant updates and potential breaking changes.
@Daethyra Daethyra changed the title refactor(utils): split utility_funcs.py into more manageable modules v5.0.0 | refactor utility module | update Curie system prompt | update dependencies/project version Sep 15, 2024
@Daethyra Daethyra marked this pull request as ready for review September 15, 2024 23:50
@Daethyra Daethyra merged commit 812e6d0 into streamlit Sep 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

dependencies Pull requests that update a dependency file refactor Needs reworking, or is already reworked

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

Refactor utility_funcs.py into smaller, more manageable modules

1 participant