Skip to content

A simple local ChatPDF program that supports uploading multiple PDFS. Techniques used: LangChain, Streamlit. You can replace any LLM interface or Embedding interface you prefer

Notifications You must be signed in to change notification settings

KennyCaty/ChatMultiPDFs-Streamlit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChatMultiPDFs-Streamlit

A simple local ChatPDF program that supports uploading multiple PDFS. Techniques used: LangChain, Streamlit. You can replace any LLM interface or Embedding interface you prefer


😎一个简单的本地ChatPDF程序,支持上传多个pdf文件。使用的技术:LangChain, Streamlit。您可以替换您喜欢的任何LLM接口或嵌入接口

🐍 Python==3.9.0


Install

git clone https://github.com/KennyCaty/ChatMultiPDFs-Streamlit.git

cd ChatMultiPDFs-Streamlit

pip install -r requirements.txt

Run

To modify your own.env file, you can modify the.env_example file and delete the suffix.

You need to add OPENAI_API_KEY and HUGGINGFACEHUB_API_TOKEN to the.env file

修改自己的.env文件, 可以修改.env_example文件然后删掉后缀。 你需要在.env文件中添加OPENAI_API_KEY和HUGGINGFACEHUB_API_TOKEN

.env:

OPENAI_API_KEY=...
HUGGINGFACEHUB_API_TOKEN=...

HTTPS_PROXY= socks5://127.0.0.1:7890   #国内用的化需要代理 clash默认端口7890 无需更改

Terminal:

streamlit run .\main.py

Reference

👉 Referenced this youtuber's video Alejandro AO - Software & Ai

About

A simple local ChatPDF program that supports uploading multiple PDFS. Techniques used: LangChain, Streamlit. You can replace any LLM interface or Embedding interface you prefer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages