Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

项目概述

本项目为个人练习项目,主要功能包括文档审核、文件格式转换和风险评估。

核心功能

1. 文件审核

  • 支持格式:当前仅支持 docx 文件
  • 审核维度:
    • 基础语法检查
    • 术语规范审查
    • 文档格式验证

2. 文件格式转换

支持多种文件格式间的相互转换:

  • docx
  • pdf
  • html
  • txt
  • md
  • json
  • yaml

3. 风险评估

对企业生产过程中可能产生的风险事件进行识别与评估分析。

快速启动

1.启动后端服务

uv sync
uv run main.py

2.启动前端

打开index.html

docker部署(切换到项目目录)

1.构建镜像

docker build -t aidocument:latest .

2.创建临时容器(不启动)

docker create --name ai-temp aidocument:latest

3.创建宿主机目录

mkdir -p /root/aidocument

4.从临时容器复制文件到宿主机

docker cp ai-temp:/app/Configs /root/aidocument/
docker cp ai-temp:/app/Results /root/aidocument/
docker cp ai-temp:/app/Logs /root/aidocument/

5.删除临时容器

docker rm ai-temp

6.docker compose模式运行(也可普通运行)

docker compose up -d

配置文件说明

系统通过以下配置文件进行功能定制:

  1. 大模型API配置

    • 路径:Configs/../xxConfig.json
    • 用途:配置大模型相关API参数
  2. 文档格式审核标准

    • 路径:Configs/../xxConfig.json
    • 用途:定义文档格式审核的具体标准
  3. 术语库配置

    • 路径:Configs/../termBank.json
    • 用途:维护术语审核的术语库标准

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages