Skip to main content

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.

Quick example

from pk_ai_tools import RAGPipeline

rag = RAGPipeline(
    doc_folder="./data",
    language="en",
    uuid="demo-user"
)

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

pk_ai_tools-0.1.0.tar.gz (15.0 kB view details)

Uploaded Source

Built Distribution

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

pk_ai_tools-0.1.0-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

Details for the file pk_ai_tools-0.1.0.tar.gz.

File metadata

  • Download URL: pk_ai_tools-0.1.0.tar.gz
  • Upload date:
  • Size: 15.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for pk_ai_tools-0.1.0.tar.gz
Algorithm Hash digest
SHA256 69450cdb443d8c4c9dddbdb99ca3809a22ea6ce990dca64b0eb8a56d117f9867
MD5 5dcd73fa20304750880d18fe6b067a44
BLAKE2b-256 c9910218d9903dc0fda35058245ee92df92ec74b1586210a3d5338ff46015039

See more details on using hashes here.

File details

Details for the file pk_ai_tools-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pk_ai_tools-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for pk_ai_tools-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 db20df0ae1ff616659911d4c89bcd8f96bb9bc1c6fa3611b56b91c04a3e46d9f
MD5 79b38ebca857c8045ad16a3174979f72
BLAKE2b-256 59d4f1bb50d1796c6a34dd50df05a8f68e6a2ed99857d695161148282ca58c56

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