paper-qa
paper-qa copied to clipboard
3.5.0 system prompt errors when upgrading
I've got a basic proof of concept streamlit running paper-qa, and when I upgraded from 3.4.1 it introduced a number of breaking changes. Either asserting `AttributeError: 'OpenAIEmbeddings' object has no attribute 'model_kwargs' or, previously, asserting a problem with the system prompt:
system_prompt=self.prompts.system,
^^^^^^^^^^^^^^^^^^^
AttributeError: 'PromptCollection' object has no attribute 'system' ```
Can you double-check your example code in light of 3.5.0? I think... I've probably missed something?
Happy to share my streamlit demo when it's a touch more mature.
I'm having AttributeError: 'OpenAIEmbeddings' object has no attribute 'model_kwargs' when calling result = qa(prompt), qa = ConversationalRetrievalChain.from_llm(chat, db.as_retriever(), chat_prompt_template) do you think its the same bug?
Hello @Denubis, we have just released version 5, which completely outsources all LLM management to https://github.com/BerriAI/litellm.
If your issue persists, please reopen a new issue using paper-qa>=5