From 2c63a030e5b30eb8ddbe188a5348fe1f3e6f210a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=A6=82=E5=A8=81?= Date: Mon, 24 Nov 2025 14:10:34 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=90=91=E9=87=8F=E5=8C=96=E6=95=B0?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 5 ++++- README.md | 32 ++++++++++++++++++++++++++++++++ requirements.txt | 3 ++- 3 files changed, 38 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index d7d9328..4dc5fb7 100644 --- a/.gitignore +++ b/.gitignore @@ -66,4 +66,7 @@ docker-compose.override.yml node_modules/ npm-debug.log* yarn-debug.log* -yarn-error.log* \ No newline at end of file +yarn-error.log* + +# db +chroma_db \ No newline at end of file diff --git a/README.md b/README.md index e69de29..f37a9da 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,32 @@ +## 目录结构 + +``` +sample-ai/ +│ +├── requirements.txt +├── README.md +├── setup.py # 可选,打包/安装用 +│ +├── src/ +│ ├── sample_ai/ +│ │ ├── __init__.py +│ │ ├── main.py # 项目主入口(如有 CLI 或服务) +│ │ ├── nodes.py # 流程节点相关 +│ │ ├── vector_store.py # 向量数据库/知识库管理 +│ │ ├── utils.py # 工具函数(如 embedding、分块等) +│ │ ├── config.py # 配置管理(如环境变量、常量等) +│ │ └── data/ +│ │ ├── __init__.py +│ │ └── ... # 数据处理相关(如 chunk、预处理等) +│ │ +│ └── tests/ +│ ├── __init__.py +│ ├── test_nodes.py +│ ├── test_vector_store.py +│ └── test_utils.py +│ +├── scripts/ +│ └── run_server.sh # 启动脚本等 +│ +└── chroma_db/ # Chroma 本地数据库(自动生成,可忽略版本控制) +``` \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index aebd9d2..3b87d14 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1,2 @@ -httpx==0.28.1 \ No newline at end of file +httpx==0.28.1 +chromadb==1.3.4 \ No newline at end of file