Document loaders for AI-Parrot RAG pipelines
Project description
AI-Parrot Loaders
ai-parrot-loaders provides document loaders for AI-Parrot RAG (Retrieval-Augmented Generation) pipelines. Each loader transforms a specific document format into text chunks that can be embedded and searched.
Installation
pip install ai-parrot-loaders
Install only the extras you need:
pip install ai-parrot-loaders[pdf]
pip install ai-parrot-loaders[youtube]
pip install ai-parrot-loaders[audio]
pip install ai-parrot-loaders[web]
# Everything
pip install ai-parrot-loaders[all]
Available Extras
| Extra | Description |
|---|---|
pdf |
PDF loading with OCR support (PaddleOCR) |
youtube |
YouTube transcript and video download |
audio |
Audio transcription (WhisperX, pyannote) |
web |
HTML/web page loading |
ebook |
EPUB e-book loading |
video |
Video processing (MoviePy, FFmpeg) |
Supported Formats
| Loader | Format | Description |
|---|---|---|
TextLoader |
.txt |
Plain text files |
CSVLoader |
.csv |
CSV files |
ExcelLoader |
.xlsx, .xls |
Excel spreadsheets |
MSWordLoader |
.docx |
Microsoft Word documents |
HTMLLoader |
.html |
HTML files |
MarkdownLoader |
.md |
Markdown files |
PDFLoader |
.pdf |
PDF documents |
PDFMarkdownLoader |
.pdf |
PDF to Markdown conversion |
PDFTablesLoader |
.pdf |
PDF table extraction |
PowerPointLoader |
.pptx |
PowerPoint presentations |
EpubLoader |
.epub |
EPUB e-books |
WebLoader |
URL | Web pages |
YoutubeLoader |
URL | YouTube video transcripts |
VimeoLoader |
URL | Vimeo video transcripts |
AudioLoader |
.mp3, .wav, etc. |
Audio transcription |
VideoLoader |
URL | Video download + transcription |
VideoLocalLoader |
.mp4, etc. |
Local video transcription |
DocumentConverterLoader |
multiple | Auto-detect format and convert |
Quick Start
from parrot_loaders.factory import get_loader_class
# Auto-detect loader by file extension
LoaderClass = get_loader_class("report.pdf")
loader = LoaderClass(source="report.pdf")
documents = await loader.load()
for doc in documents:
print(doc.page_content[:200])
Or use a specific loader directly:
from parrot_loaders.youtube import YoutubeLoader
loader = YoutubeLoader(source="https://www.youtube.com/watch?v=...")
documents = await loader.load()
Requirements
- Python >= 3.11
- ai-parrot >= 0.23.18
License
MIT
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 Distributions
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 ai_parrot_loaders-0.1.22-py3-none-any.whl.
File metadata
- Download URL: ai_parrot_loaders-0.1.22-py3-none-any.whl
- Upload date:
- Size: 117.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd668826157e1bbd379c6364932bf4d38dcb2d3b08da89b15aa8a02df036726b
|
|
| MD5 |
27685cf3756f76b61854ba744bb9748b
|
|
| BLAKE2b-256 |
a4407dc32c15fa7625033faae12d248dedd7fbcd240ed7af82cac185da623fe1
|
Provenance
The following attestation bundles were made for ai_parrot_loaders-0.1.22-py3-none-any.whl:
Publisher:
release.yml on phenobarbital/ai-parrot
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ai_parrot_loaders-0.1.22-py3-none-any.whl -
Subject digest:
cd668826157e1bbd379c6364932bf4d38dcb2d3b08da89b15aa8a02df036726b - Sigstore transparency entry: 1264233717
- Sigstore integration time:
-
Permalink:
phenobarbital/ai-parrot@844c9c2d9230ff71a069c41c9e43aad9708176c7 -
Branch / Tag:
refs/tags/0.24.23 - Owner: https://github.com/phenobarbital
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@844c9c2d9230ff71a069c41c9e43aad9708176c7 -
Trigger Event:
release
-
Statement type: