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 rerankingrag_forge_core.security— InputGuard, OutputGuard, PII scanning, prompt injection detectionrag_forge_core.context— Contextual enrichment and semantic cachingrag_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
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 rag_forge_core-0.1.0.tar.gz.
File metadata
- Download URL: rag_forge_core-0.1.0.tar.gz
- Upload date:
- Size: 61.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
942b6c2e351274818d1876f4d0a899a871af310f1f911dedd9e39dcc387e7991
|
|
| MD5 |
578344b0c1e8bd489b98339fa0a91554
|
|
| BLAKE2b-256 |
2c74ab6305aecc15200af7bdb1c4783c6ddadff9e2e6862f32714cc213a9c5f6
|
File details
Details for the file rag_forge_core-0.1.0-py3-none-any.whl.
File metadata
- Download URL: rag_forge_core-0.1.0-py3-none-any.whl
- Upload date:
- Size: 67.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b218a42fefdcba333f7932ffabaa9993681e86eb1a2ecbe7014fb236d55376dc
|
|
| MD5 |
9d72454a88a7d29530812d180b1b5ed6
|
|
| BLAKE2b-256 |
4395a4354101a3358ab3ecbb1a85652ad6b1f348cfcebcbc67d7fa64ad7fae7e
|