feat: 向量化数据

This commit is contained in:
李如威 2025-11-24 14:10:34 +08:00
parent 370301cd15
commit 2c63a030e5
3 changed files with 38 additions and 2 deletions

5
.gitignore vendored
View File

@ -66,4 +66,7 @@ docker-compose.override.yml
node_modules/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
yarn-error.log*
# db
chroma_db

View File

@ -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 本地数据库(自动生成,可忽略版本控制)
```

View File

@ -1 +1,2 @@
httpx==0.28.1
httpx==0.28.1
chromadb==1.3.4