Skip to content

使用langchain+ollama进行简单的chatpdf

Notifications You must be signed in to change notification settings

zaykl/ollama-chatpdf

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  1. 安装关联包
pip install -r requirements.txt
  1. 引入OPENAI_API_KEY
export OPENAI_API_KEY={your-api-key}
# or
os.environ["OPENAI_API_KEY"] = {your-api-key}
  1. 进行问答
python3 embedding.py 
python3 qa.py 

About

使用langchain+ollama进行简单的chatpdf

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%