mayooear / gpt4-pdf-chatbot-langchain

GPT4 & LangChain Chatbot for large PDF docs
https://www.youtube.com/watch?v=ih9PBGVVOO4
14.87k stars 3.01k forks source link

Rewriting in Python #244

Closed FHL1998 closed 9 months ago

FHL1998 commented 1 year ago

Really impressive work! I am a Python guy, is anyone interested in rewriting this project in Python?

ldtownsend commented 1 year ago

I'm interested and and want to start tonight. But without an MIT or Apache license posted I'm a little hesitant to post it when done.

ThomasEwing04 commented 1 year ago

I'm interested and and want to start tonight. But without an MIT or Apache license posted I'm a little hesitant to post it when done.

This.

PhilipAD commented 1 year ago

Uses a ConversationalRetrievalQAChain which I think is the equivalent of ConversationalRetrievalChain.

import { PineconeStore } from 'langchain/vectorstores/pinecone'; import { ConversationalRetrievalQAChain } from 'langchain/chains';

ConversationalRetrievalChain.from_llm(llm, docsearch.as_retriever(), memory=memory, condense_question_prompt=PROMPT, return_source_documents=True)

Although, the answers I get back are much shorter. I'm assuming the underlying implementation ConversationalRetrievalQAChain is different?

drewskidang commented 1 year ago

some one please try this

Lukas-Novak commented 1 year ago

It is a bit different project, but Zak Elmeghni already provided a tutorial how to do it in python: https://blog.nextideatech.com/chat-with-documents-using-langchain-gpt-4-python/

drewskidang commented 1 year ago

homie!!

BahaEddineD commented 1 year ago

can some one give me the code in python guys i need it so bad

drewskidang commented 1 year ago

@BahaEddineD heres the ingest method of it

https://github.com/ucl98/pinecone_ingest_python_implementation

you can take a look at https://github.com/Chainlit/cookbook for examples

dosubot[bot] commented 10 months ago

Hi, @FHL1998

I'm helping the gpt4-pdf-chatbot-langchain team manage their backlog and am marking this issue as stale. From what I understand, you were impressed with the project and were looking for someone interested in rewriting it in Python. There were some discussions and sharing of resources related to this, but the issue remains unresolved.

Could you please confirm if this issue is still relevant to the latest version of the gpt4-pdf-chatbot-langchain repository? If it is, please let the gpt4-pdf-chatbot-langchain team know by commenting on the issue. Otherwise, feel free to close the issue yourself, or it will be automatically closed in 7 days.

Thank you!

VigneshDevelops commented 5 months ago

Check this out for Python implementation https://github.com/VigneshDevelops/chat-with-docs