Simple RAG pipeline + document ingestion utilities (LangChain + Chroma + Ollama).
Project description
pk-ai-tools
pk-ai-tools is a small Python library that provides a reusable RAG (Retrieval-Augmented Generation) pipeline and a flexible document ingestion system.
It is built on top of:
- LangChain
- Chroma
- Ollama
The main goal of this project is to make it easy to:
- Ingest documents from many formats (PDF, Word, Excel, CSV, Markdown, HTML, etc.)
- Build or update a Chroma vector database
- Ask questions using a simple RAG pipeline backed by local Ollama models
This library was originally created for personal use and has been generalized to be reusable across projects.
Installation
bash pip install pk-ai-tools
Requires:
Python 3.9+
Ollama installed and running
Quick example
from pk_ai_tools import RAGPipeline
rag = RAGPipeline(
doc_folder="./data",
language="en",
uuid="demo-user",
model_name="llama3"
)
answer = rag.ask("What is this documentation about?")
print(answer)
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
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 pk_ai_tools-0.1.1.tar.gz.
File metadata
- Download URL: pk_ai_tools-0.1.1.tar.gz
- Upload date:
- Size: 26.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08aa840a0c6ea24cd6275adaf9c2b973ceac99612cc5226525e56bf0d86d6299
|
|
| MD5 |
6cf114c2f056e2fa50454b9d4b55a76a
|
|
| BLAKE2b-256 |
3afc12e84a97038b990209ea405d8ca23fbc927ffce262fa29ce7f50629b7706
|
File details
Details for the file pk_ai_tools-0.1.1-py3-none-any.whl.
File metadata
- Download URL: pk_ai_tools-0.1.1-py3-none-any.whl
- Upload date:
- Size: 15.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
540e78c16f6eaf744bb8f3382c67ef296b336e5d80d5840be9e946543f8640c1
|
|
| MD5 |
3954c64b309a2f960d854e44d0663bde
|
|
| BLAKE2b-256 |
7a8f4c7ef6d6ededa2719df9a181377cd1704dbe22c29d5ecdd8f0170cf3d399
|