Skip to main content

rag-forge-core

RAG pipeline primitives for the RAG-Forge toolkit: ingestion, chunking, retrieval, context management, and security.

Installation

pip install rag-forge-core

Usage

This package provides the building blocks used by the rag-forge CLI. For end-user usage, see the main RAG-Forge documentation.

from rag_forge_core.chunking.factory import create_chunker
from rag_forge_core.chunking.config import ChunkConfig

chunker = create_chunker(ChunkConfig(strategy="recursive", chunk_size=512))
chunks = chunker.chunk("Some long document text...", source="doc.md")

Modules

  • rag_forge_core.chunking — Five chunking strategies (recursive, fixed, semantic, structural, llm-driven)
  • rag_forge_core.retrieval — Dense, sparse, and hybrid retrieval with reranking
  • rag_forge_core.security — InputGuard, OutputGuard, PII scanning, prompt injection detection
  • rag_forge_core.context — Contextual enrichment and semantic caching
  • rag_forge_core.plugins — Plugin registry for custom extensions

License

MIT

Metadata

Release files for rag-forge-core 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rag-forge-core 0.2.3
File Size Uploaded
rag_forge_core-0.2.3.tar.gz 61.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rag-forge-core 0.2.3
File Interpreter ABI Platform
rag_forge_core-0.2.3-py3-none-any.whl Python 3 none any Details

Total release size: 129.3 kB

Release files / rag_forge_core-0.2.3.tar.gz

Download URL rag_forge_core-0.2.3.tar.gz
Size 61.6 kB
Tags Source
SHA-256 checksum
How to use checksums
82ff8b21b15e02e52140e5505776e263707ac822ce7cd791147cf3c17e9af5d3
BLAKE2b-256 checksum
How to use checksums
34836a1c81136d46d26843bea9553df5df70a4c42d8504ca27a3e1f7a298f7ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 16, 2026.

Transparency log

Release files / rag_forge_core-0.2.3-py3-none-any.whl

Download URL rag_forge_core-0.2.3-py3-none-any.whl
Size 67.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f85d3050ae05e6f5d07b4511fc3acd51e1c75a8a9df6c9de4713be33863d0192
BLAKE2b-256 checksum
How to use checksums
5ed95228d64394a57e62b1cb7882dde5c5b8732405005d05246c1bfa3fbef496
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 16, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.3 This release

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page