Metadata-Version: 2.3
Name: whiskerrag
Version: 0.0.1a7
Summary: A utility package for RAG operations
Author: petercat.ai
Author-email: antd.antgroup@gmail.com
Requires-Python: >=3.8.1,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Dist: PYGithub (==2.3.0)
Requires-Dist: langchain (>=0.2.12,<0.3.0)
Requires-Dist: langchain_community (>=0.2.11,<0.3.0)
Requires-Dist: langchain_core (>=0.2.28,<0.3.0)
Requires-Dist: langchain_openai (>=0.1.20,<0.2.0)
Requires-Dist: pydantic (>=2.0.0,<3.0.0)
Description-Content-Type: text/markdown

# WhiskerRAG-toolkit

petercat、whisker 项目使用的 rag 工具包，提供 rag 相关类型定义和方法

## 使用方式

```
pip install whiskerRAG
```

提供两个模块，分别是 whiskerrag_utils 和 whiskerrag_types

```
from whiskerrag_utils.github.fileLoader import GithubFileLoader
from whiskerrag_types.interface import DBPluginInterface
from whiskerrag_types.model import Knowledge, Task, Tenant, PageParams, PageResponse
```

## 开发指南

安装 poetry 进行依赖管理

```bash
pip install poetry
```

## 本地测试

```bash
# 运行测试
poetry run pytest

# 带覆盖率报告
poetry run pytest --cov

# 查看HTML格式的覆盖率报告
poetry run pytest --cov --cov-report=html
open htmlcov/index.html

```

# 构建并发布

```bash
poetry build

poetry publish
```

