Anteemony / RAG-Playground

Chat with your PDF file using the LLM of your choice
https://unify-rag-playground.streamlit.app/
6 stars 5 forks source link

Fix: Chat History Bug #34

Closed Anteemony closed 6 months ago

Anteemony commented 6 months ago

Use RetrievalQA instead of ConversationalRetrievalChain

Fixes #32

Anteemony commented 6 months ago

Now the model can answer "What's the last question I asked you" correctly

@OscarArroyoVega you can take a look at it

OscarArroyoVega commented 6 months ago

I see it! Perfect. How do you think it will work to add the access to the history as a condition ( E.g. if the question refers to previous questions or answers...)

Anteemony commented 6 months ago

Great. For the history part, The LLM would take care of all of that by itself.

Previously it didn't have access to the chat history directly. i.e. the chat history was used for question rephrasing.

But now the history is passed directly to the LLM so it should work as we expect!