paper-qa icon indicating copy to clipboard operation
paper-qa copied to clipboard

3.5.0 system prompt errors when upgrading

Open Denubis opened this issue 2 years ago • 1 comments

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.


Denubis avatar Aug 03 '23 05:08 Denubis

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?

Danielxpj avatar Aug 11 '23 18:08 Danielxpj

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

jamesbraza avatar Sep 11 '24 17:09 jamesbraza