/Llama_Difu

A Web-UI for Llama_index. Allow ChatGPT to access your own database.

Primary LanguagePythonMIT LicenseMIT

简体中文 | English

Llama_difu —— Llama Do it for You

LICENSE Web-UI base


Llama_index (gpt_index)做了个便于使用的图形界面。可以让ChatGPT访问自定义的内容,甚至是数据库!

特点

  • 允许ChatGPT访问您自己的数据库
  • 新谷歌:像新必应一样,但使用谷歌!
  • 简单查询
  • 简单构建索引(目前仅支持GPTSimpleVectorIndex)
    • 支持 .txt,.pdf,.docx,.epub
  • 自定义提示模板
  • 自定义PromptHelper
  • .json视图
  • 聊天
  • 多文件支持
  • 更多LLMPredictor
  • 更多索引方法

截图

提问模式

image

新谷歌

选中“Search Google”复选框,聊天机器人将为您搜索网络,并基于此生成内容。就像新必应一样,但使用谷歌!

建议在使用新谷歌时使用平衡或精确模式。

image

构建自己的索引

image

用法

克隆此仓库

git clone https://github.com/MZhao-ouo/Llama_difu.git
cd Llama_difu

安装依赖项

pip install -r requirements.txt

运行

python main.py

(可选) 默认API密钥

创建 args.json 文件:

{
    "api-key": "",
    "host": "127.0.0.1",
    "port": 7860,
    "share": false
}