Metadata-Version: 2.4
Name: prismrag-patch
Version: 0.1.0
Summary: Drop-in hallucination-resistant retrieval for pgvector, ChromaDB, Pinecone, and Weaviate
Author-email: Insight IT Solutions <sales@prismrag.insightits.com>
License: Commercial
Project-URL: Homepage, https://prismrag.insightits.com/prismrag-lib.html
Project-URL: Repository, https://github.com/aminparva84/InsightPrismRAG
Project-URL: Bug Tracker, https://prismrag.insightits.com/support
Keywords: rag,vector-database,hallucination,pgvector,chromadb,pinecone,weaviate,llm
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: requests>=2.28
Requires-Dist: numpy>=1.24
Provides-Extra: pgvector
Requires-Dist: psycopg2-binary>=2.9; extra == "pgvector"
Requires-Dist: pgvector>=0.2; extra == "pgvector"
Provides-Extra: chroma
Requires-Dist: chromadb>=0.4; extra == "chroma"
Provides-Extra: pinecone
Requires-Dist: pinecone-client>=3.0; extra == "pinecone"
Provides-Extra: weaviate
Requires-Dist: weaviate-client>=4.0; extra == "weaviate"
Provides-Extra: all
Requires-Dist: psycopg2-binary>=2.9; extra == "all"
Requires-Dist: pgvector>=0.2; extra == "all"
Requires-Dist: chromadb>=0.4; extra == "all"
Requires-Dist: pinecone-client>=3.0; extra == "all"
Requires-Dist: weaviate-client>=4.0; extra == "all"

# prismrag-patch

**Drop-in hallucination-resistant retrieval for your own vector database.**

PrismRAG Patch wraps pgvector, ChromaDB, Pinecone, or Weaviate with PrismRAG's
Tier-1 re-mapping technique — deterministic category projection that grounds every
chunk in your verified rules before it ever reaches the LLM.

```python
from prismrag_patch import PrismRAGPatch
from prismrag_patch.adapters.pgvector import PgvectorAdapter

mapping = {
    "categories": [
        {"slug": "risk",   "label": "Risk & Compliance"},
        {"slug": "growth", "label": "Growth"},
    ],
    "rules": [
        {"word": "volatility", "category_slug": "risk",   "weight": 1.0},
        {"word": "revenue",    "category_slug": "growth", "weight": 1.0},
    ],
}

patch   = PrismRAGPatch(license_key="prlib_…", mapping=mapping)
adapter = PgvectorAdapter(patch, connection=your_psycopg2_conn)

# Insert — re-mapped before storage
adapter.insert(text=doc, vector=embed(doc))

# Search — query re-mapped identically, no hallucination path
results = adapter.search("what is our risk exposure?", query_vector=q_vec)
```

## Installation

```bash
pip install prismrag-patch                   # core only
pip install "prismrag-patch[pgvector]"       # + pgvector support
pip install "prismrag-patch[chroma]"         # + ChromaDB support
pip install "prismrag-patch[pinecone]"       # + Pinecone support
pip install "prismrag-patch[weaviate]"       # + Weaviate support
pip install "prismrag-patch[all]"            # all adapters
```

## License

Commercial license required. Get yours at
[prismrag.insightits.com/prismrag-lib.html](https://prismrag.insightits.com/prismrag-lib.html).

© 2026 Insight IT Solutions
