A utility package for RAG operations
Project description
WhiskerRAG-toolkit
WhiskerRAG-toolkit 是为 PeterCat 和 Whisker 项目开发的 RAG(Retrieval-Augmented Generation)工具包,提供完整的 RAG 相关类型定义和方法实现。
特性
- 领域建模类型
- 插件接口描述
- Github、S3 数据源加载器
- OpenAI Emedding
安装
使用 pip 安装:
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 进行依赖管理。首先安装 Poetry:
pip install poetry
安装依赖
poetry install
运行测试
# 运行单元测试
poetry run pytest
# 生成测试覆盖率报告
poetry run pytest --cov
# 生成 HTML 格式的覆盖率报告
poetry run pytest --cov --cov-report=html
open htmlcov/index.html
构建与发布
# 构建项目
poetry build
# 发布到 PyPI
poetry publish
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
whiskerrag-0.0.1a19.tar.gz
(9.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file whiskerrag-0.0.1a19.tar.gz.
File metadata
- Download URL: whiskerrag-0.0.1a19.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.1 CPython/3.10.11 Darwin/23.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52f5a861b22d90ca276a970df420cb4f34a3f5c9330f78bc0efeb8d7a0ba6964
|
|
| MD5 |
29f3890586b25887ed0619e343041dd4
|
|
| BLAKE2b-256 |
e0d8ffbc05e7540e912d7422a7a8db036c15b9058af340fbe85b87d4e1a1465e
|
File details
Details for the file whiskerrag-0.0.1a19-py3-none-any.whl.
File metadata
- Download URL: whiskerrag-0.0.1a19-py3-none-any.whl
- Upload date:
- Size: 16.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.1 CPython/3.10.11 Darwin/23.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
682bad991097e27437414d529fa36ce67554ec9b730940dfbf8d896a2c646235
|
|
| MD5 |
e3631966281b8dafea9126dd95c2a83c
|
|
| BLAKE2b-256 |
91427ab8e1a7ac61fb80260f0f07b28081129dd10a1e7107ad8bff68c2aff095
|