8000 GitHub - gewei100/streamlit_rag
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

gewei100/streamlit_rag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

  1. 克隆此仓库
  2. 安装依赖:
    pip install -r requirements.txt
    
  3. 创建.env文件并添加您的OpenAI API密钥: `

使用方法

  1. 爬取Streamlit文档:

    python fetch_docs.py
    
  2. 创建向量数据库:

    python create_vectordb.py
    
  3. 运行应用:

    streamlit run app.py
    

项目结构

  • fetch_docs.py: 爬取Streamlit官方文档
  • create_vectordb.py: 创建文档向量数据库
  • app.py: Streamlit应用主文件
  • requirements.txt: 项目依赖
  • streamlit_docs/: 存储爬取的文档
  • streamlit_docs_text/: 处理后的文本文档
  • streamlit_docs_vectors/: 向量数据库

注意事项

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0