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.1.2.tar.gz (61.5 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.1.2-py3-none-any.whl (67.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rag_forge_core-0.1.2.tar.gz
  • Upload date:
  • Size: 61.5 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.1.2.tar.gz
Algorithm Hash digest
SHA256 d7e70160750a2303a606c2dd2a22acc2b2a7e295dea27b5de723a8ce495277bc
MD5 f8ab02a1a78757c566a9be9af3b68e27
BLAKE2b-256 b7077b91e75371d308efb602cfc08a1a8201db7400e7cbc82eec326c1291e0f0

See more details on using hashes here.

Provenance

The following attestation bundles were made for rag_forge_core-0.1.2.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.1.2-py3-none-any.whl.

File metadata

  • Download URL: rag_forge_core-0.1.2-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.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0c437a59945b1c97b18a4020893c991179d7d9a0876e8af96e4b97cf69457d95
MD5 a708fe1b594e9a45b74875c84d3999aa
BLAKE2b-256 1b56059f6f337f2cbf03289de0c5efb556ad653538283d432b2552e305cbf726

See more details on using hashes here.

Provenance

The following attestation bundles were made for rag_forge_core-0.1.2-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