Skip to main content

RAG pipeline primitives: ingestion, retrieval, context management, and security

Project description

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

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

rag_forge_core-0.2.1.tar.gz (61.6 kB view details)

Uploaded Source

Built Distribution

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

rag_forge_core-0.2.1-py3-none-any.whl (67.7 kB view details)

Uploaded Python 3

File details

Details for the file rag_forge_core-0.2.1.tar.gz.

File metadata

  • Download URL: rag_forge_core-0.2.1.tar.gz
  • Upload date:
  • Size: 61.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for rag_forge_core-0.2.1.tar.gz
Algorithm Hash digest
SHA256 5a4e8c4e4a3ff321ca0988e5607dac46344d236c469a4af075e5c26b5566c9b6
MD5 8a84c0f405647c81e937c932662d49be
BLAKE2b-256 874fa6d55d499f224700af2c9ecac4981ee3eccb86243fa13210d4f9b79db003

See more details on using hashes here.

Provenance

The following attestation bundles were made for rag_forge_core-0.2.1.tar.gz:

Publisher: publish.yml on hallengray/rag-forge

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rag_forge_core-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: rag_forge_core-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 67.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for rag_forge_core-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 46f985fffb0410e7249fdb950a3a66e5d586e09741be92adaf18be99cb6d2dee
MD5 3cbca8275a5ea8317787559a23bd7db9
BLAKE2b-256 3a56e3c8909eb34b3101ccdc1dca215ee62ecd88a7bdcf643657c22ff4b957ed

See more details on using hashes here.

Provenance

The following attestation bundles were made for rag_forge_core-0.2.1-py3-none-any.whl:

Publisher: publish.yml on hallengray/rag-forge

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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