📚使用IncarnaMind同时和多个pdf(txt)文档聊天

Lesley

Tech|2023-9-18|Last edited: 2023-9-21|
type
Post
status
Published
date
Sep 18, 2023
slug
IncarnaMind
summary
使用IncarnaMind同时和多个pdf(txt)文档聊天
tags
Computer
Learning
category
Tech
icon
password
💡
在windows上使用IncarnaMind同时和多个pdf(txt)文档聊天

前置条件

安装

使用Git克隆仓库

填写API KEY

打开configparser.ini修改API Key
notion image

创建虚拟环境

点击右下角windows图标,搜索conda,选择Anaconda Prompt (Conda),输入以下指令进入仓库文件夹E:\NewGitHub\IncarnaMind并创建虚拟环境,中间需要输入一次y确定
notion image

激活并安装包

注意:windows系统需要先删除requirements.txt中的uvloop包,否则会报错

使用

加载文件

  1. 将文件放进data文件夹
  1. 运行以下代码加载
notion image

punkt和wordnet加载报错处理

notion image
notion image
在Anaconda Prompt (Conda)输入以下代码安装包后,重新执行 python docs2db.py

运行主程序开始聊天

notion image
Loading...