diff --git a/CHANGELOG.md b/CHANGELOG.md index 6c4a64c..e9b6bea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). +## [0.4.2] - 2024-08-23 + +### Fixed ++ Correct invalid dependency of promptlayer slipped in the build + ## [0.4.1] - 2024-08-23 ### Added diff --git a/streamlit_app.py b/streamlit_app.py index cbd3a48..6074fec 100644 --- a/streamlit_app.py +++ b/streamlit_app.py @@ -6,7 +6,7 @@ import dotenv from grobid_quantities.quantities import QuantitiesAPI from langchain.memory import ConversationBufferWindowMemory -from langchain_community.callbacks import PromptLayerCallbackHandler +# from langchain_community.callbacks import PromptLayerCallbackHandler from langchain_community.chat_models import ChatOpenAI from langchain_community.llms.huggingface_endpoint import HuggingFaceEndpoint from langchain_huggingface import HuggingFaceEmbeddings @@ -174,7 +174,7 @@ def init_qa(model, embeddings_name=None, api_key=None): temperature=0.01, max_new_tokens=4092, model_kwargs={"max_length": 8192}, - callbacks=[PromptLayerCallbackHandler(pl_tags=[model, "document-qa"])] + # callbacks=[PromptLayerCallbackHandler(pl_tags=[model, "document-qa"])] ) embeddings = HuggingFaceEmbeddings( model_name=OPEN_EMBEDDINGS[embeddings_name])