Skip to main content

**PurrfectKit** is a Python library for effortless Retrieval-Augmented Generation (RAG) workflows.

Project description

PurrfectMeow Logo

PurrfectKit

Python 3.10–3.13 PyPI Downloads codecov Ruff Docker License

PurrfectKit is your all-in-one, dependency-smart, configuration-friendly toolkit that turns even the most advanced Retrieval-Augmented Generation (RAG) workflows into a smooth, beginner-friendly experience.

🧩 5 Cats Will Lead You To The Purrfect Way.

🐱 Suphalak – Seamlessly reads and loads content from files.

🐱 Malet – Splits content into high-quality, model-friendly chunks.

🐱 WichienMaat – Embeds chunks into powerful vector representations.

🐱 KhaoManee – Searches and retrieves the most relevant vectors.

🐱 Kornja – Generates final responses enriched by retrieved knowledge (Under Development).

NOTE: The Thai cat-themed naming isn’t just cute—it makes learning and remembering the RAG process surprisingly fun and intuitive.

Whether you're a sturdent, researcher, hobbyist, or production-level engineer, this toolkit gives you a clean, guided workflow that “just works

Quickstart

PurrfectKit aims to be plug-and-play, but a few lightweight system tools are required.

Prerequisites

Linux (Ubuntu / Debian)

# Install Python (if not already)
sudo apt update
sudo apt install -y python3 python3-pip

# Install Tesseract OCR
sudo apt install -y tesseract-ocr tesseract-ocr-tha

# Install FFmpeg
sudo apt install -y ffmpeg

# Install libmagic
sudo apt install -y libmagic1

macOS

# Install Homebrew if missing
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

# Install Python
brew install python

# Install Tesseract OCR
brew install tesseract

# Install FFmpeg
brew install ffmpeg

# Install libmagic
brew install libmagic

Windows

# Install Python
Download from the official website:

[https://www.python.org/downloads/](https://www.python.org/downloads/)

✔ Make sure to check “Add Python to **PATH**” during installation.

# Install Tesseract OCR
Download the Windows installer:

[https://github.com/UB-Mannheim/tesseract/wiki](https://github.com/UB-Mannheim/tesseract/wiki)

✔ Make sure to add the installation path to your **System PATH**

Installation

pip install purrfectkit

Usage

from purrfectmeow.meow.felis import DocTemplate, MetaFile
from purrfectmeow import Suphalak, Malet, WichienMaat, KhaoManee

file_path = 'test/test.pdf'
metadata = MetaFile.get_metadata(file_path)
with open(file_path, 'rb') as f:
    content = Suphalak.reading(f, 'test.pdf')
chunks = Malet.chunking(content, chunk_method='token', chunk_size='500', chunk_overlap='25')
docs = DocTemplate.create_template(chunks, metadata)
embedding = WichienMaat.embedding(chunks)
query = WichienMaat.embedding("ทดสอบ")
KhaoManee.searching(query, embedding, docs, 2)

License

PurrfectKit is released under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

purrfectkit-0.2.6.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

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

purrfectkit-0.2.6-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

Details for the file purrfectkit-0.2.6.tar.gz.

File metadata

  • Download URL: purrfectkit-0.2.6.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for purrfectkit-0.2.6.tar.gz
Algorithm Hash digest
SHA256 dca8cd2bc5b485fa72c844db063fdac3272ccf719d862ab90e07041b3379458b
MD5 10ee13a7143c553e4b5de12cb3d50ec1
BLAKE2b-256 e9d5e8d465322638951d8f42cce76457643802f44ab38290cb7b4a749d831d29

See more details on using hashes here.

File details

Details for the file purrfectkit-0.2.6-py3-none-any.whl.

File metadata

  • Download URL: purrfectkit-0.2.6-py3-none-any.whl
  • Upload date:
  • Size: 19.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for purrfectkit-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 4b6d4ce0a819197c8da3dd8679138f3ca884a230f0408c885c1b12a2bb9bfa7e
MD5 c2fb1738d9ec2bb89b14f54015acc2b5
BLAKE2b-256 7df1499f7993206f22750e4cced6abb3ebbb19cd3a0f2b05eb0ba8144f918192

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