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.1a18.tar.gz (9.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.1a18-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: whiskerrag-0.0.1a18.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

Hashes for whiskerrag-0.0.1a18.tar.gz
Algorithm Hash digest
SHA256 14b3a27c46f047acfab386510d029ab1df0884b90a6fa256028b5e5c584fae5a
MD5 061046f2fc72ee89c76289fe15566778
BLAKE2b-256 6ef31329e09ba4fbdd1f71de979083c13ad95c0afd45fa65555313f4705b5918

See more details on using hashes here.

File details

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

File metadata

  • Download URL: whiskerrag-0.0.1a18-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

Hashes for whiskerrag-0.0.1a18-py3-none-any.whl
Algorithm Hash digest
SHA256 0e4fae27e9a938e6042649e1bc4358c8a13776d063b17d7d42e0b638371a9455
MD5 837950a102e16e0a79f8fe3ceb9e00d8
BLAKE2b-256 d39a05825eda44c6bf558981a9176406f1d1537196dac02221507835cbf879e8

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