Skip to main content

A utility package for RAG operations

Project description

WhiskerRAG-toolkit

MIT License Python Version PyPI version

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.1a20.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

whiskerrag-0.0.1a20-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

Details for the file whiskerrag-0.0.1a20.tar.gz.

File metadata

  • Download URL: whiskerrag-0.0.1a20.tar.gz
  • Upload date:
  • Size: 10.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

Hashes for whiskerrag-0.0.1a20.tar.gz
Algorithm Hash digest
SHA256 567496810aa441acc279d7e986fb18c67749d86db3ea3a0f30206a5c705b4a9a
MD5 b89790cfe1f7e72c9b1c43b17fdf6e46
BLAKE2b-256 aca3c0dc93b523d9db57f3a7892f7e19df0be4cca4801606482c7abb07024285

See more details on using hashes here.

File details

Details for the file whiskerrag-0.0.1a20-py3-none-any.whl.

File metadata

  • Download URL: whiskerrag-0.0.1a20-py3-none-any.whl
  • Upload date:
  • Size: 18.3 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

Hashes for whiskerrag-0.0.1a20-py3-none-any.whl
Algorithm Hash digest
SHA256 277bdd727cda8634d57c24e510c65566c4276de17e2db05e0a33beff7cb327bf
MD5 2a00db51cb269dc73f79e3a403551894
BLAKE2b-256 7f4f06ae61ca451e5705c33afa1a58d560546a8a6224cbe35147c3f661f0888f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page