sample-ai/README.md

1.1 KiB
Raw Permalink Blame History

目录结构

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