Files
agriculture-qa/README.md
zhenghu 256fe12605 feat: 初始化 AgricultureQA 农技智能问答应用
- 搭建基于 Qwen3.5 的 Streamlit 农业技术知识问答应用
  - 支持思维链推理展示与模型参数调节
  - 新增项目核心文件:app.py、config.py、main.py
  - 新增工程化配置:pyproject.toml、justfile、Dockerfile、.gitignore
  - 完善 README 文档,包含快速开始、部署说明及项目结构
2026-04-13 16:49:12 +08:00

88 lines
1.4 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# AgricultureQA 农技智能问答
基于 Qwen3.5 大模型的农业技术知识问答应用,支持思维链推理。
## 功能特性
- 🌾 农业技术知识智能问答
- 🧠 支持思维链推理,展示深度思考过程
- ⚙️ 可调模型参数Temperature、Top P
- 💡 快捷提问按钮,一键常见农业问题
## 技术栈
- Python 3.14+
- Streamlit 1.52.1
- httpx 0.28.1
## 快速开始
### 使用 uv推荐
```bash
# 安装依赖
uv sync
# 运行应用
uv run streamlit run app.py
```
### 使用传统方式
```bash
# 创建虚拟环境
python -m venv .venv
source .venv/bin/activate
# 安装依赖
pip install -r requirements.txt
# 运行应用
streamlit run app.py
```
## 项目结构
```
AgricultureQA/
├── app.py # 主应用文件Streamlit
├── config.py # API 配置
├── main.py # 入口文件
├── pyproject.toml # 项目配置
├── justfile # 任务自动化
├── Dockerfile # Docker 配置
└── README.md # 项目文档
```
## 使用 just
项目使用 justfile 进行任务管理:
```bash
# 查看所有可用命令
just --list
# 运行应用
just run
# 代码格式化
just format
# 代码检查
just check
```
## Docker 部署
```bash
# 构建镜像
docker build -t agriculture-qa .
# 运行容器
docker run -p 8001:8001 agriculture-qa
```
## 许可证
MIT License