新增功能:自定义知识库、生成指导

允许用户上传自己的知识库(建议在线版API,或上下文长的用户使用)

允许在生成下一章节时加入提前指导

模型Temperature参数支持
This commit is contained in:
YILING0013
2025-01-31 13:50:07 +08:00
parent aebaf8efc1
commit 2fe5fe1b85
17 changed files with 461 additions and 80 deletions
+19 -2
View File
@@ -20,10 +20,22 @@
---
## **2. 安装依赖**
**手动安装以下依赖**
**进入项目目录,执行**
```bash
pip install openai langchain chromadb langchain_openai langchain_chroma langgraph typing_extensions langchain-community
pip install -r requirements.txt
```
### 安装语句切分模型punkt(可选,默认程序运行后会自动加载)
**Python环境终端输入**:
```bash
python
import nltk
nltk.download('punkt')
```
等待下载完成(很小,下载很快的)
**至此,环境配置完成。**
---
@@ -82,6 +94,11 @@ pyinstaller --onefile --windowed main.py
```
这样会在 `dist/` 目录下生成 `main.exe`Windows)或 `main`Linux/macOS)。
或者使用提供的`main.spec`,执行以下打包指令:
```bash
pyinstaller main.spec
```
---
## **6. 使用指南**