https://github.com/mayooear/gpt4-pdf-chatbot-langchain

https://www.youtube.com/watch?v=ih9PBGVVOO4

B站搬运(中文字幕): https://www.bilibili.com/video/BV1aP411d7hc

https://chat-with-data.notion.site/chat-with-data/Build-a-ChatGPT-Chatbot-For-Your-Data-f2f918136ad849f98e80bbac2cb83b36

作者在本地搭建了一个类似于ChatGPT的应用,借助OpenAI和LangChain,将PDF中的文本调用embedding API处理成向量,然后将向量存储到Pinecone数据库,最后做成一个聊天机器人,通过机器人实现了对PDF的查询,整个效果还是挺不错的。