Skip to main content

Oversight Intelligence Platform

Reason this release was yanked:

Released under MIT. Project relicensed to Apache 2.0 in v0.5.2 — install palqee-prisma-ai>=0.5.2.

Project description

Palqee Prisma

The official Python SDK for Palqee Prisma — oversight intelligence built for regulated industries.

PyPI version Python versions License Documentation


What is Prisma?

Prisma is Palqee's oversight intelligence platform: automated review and validation that replaces manual evaluations across human and AI workflows. It detects ambiguity, nuance, and violations — from AI hallucinations to failed policy steps — at full-population scale, and produces regulatory-grade evidence for stakeholders.

palqee-prisma-ai is the Python SDK that wires your application into Prisma. Instrument once, ship traces and evaluations to the platform, and inspect runs, scores, and routed cases in the dashboard.

Built for regulated workflows

  • Customer complaints, financial crimes, disputes, conduct risk, credit risk, underwriting, and onboarding / customer risk.
  • Aligned with CFPB, OCC, Federal Reserve, SEC, FINRA, and equivalent regulators.
  • Self-hosted — deployed on-premises or in your own VPC. No multi-tenant SaaS.

Why teams pick Prisma

  • Cut review costs by up to 80% — automated triage instead of full manual sampling.
  • 100% coverage at runtime — every interaction evaluated, not a 2% sample.
  • Custom validations for every risk — define evaluators that match your policy, not a generic rubric.
  • Regulatory-grade evidence — structured JSON / CSV output for audits and BI.
  • Human-in-the-loop — high-risk cases routed to reviewers; feedback retrains the system.

Installation

pip install palqee-prisma-ai

The package installs as palqee-prisma-ai on PyPI and imports as palqee_prisma_ai:

import palqee_prisma_ai

Requires Python 3.10+.

Quickstart

palqee-prisma-ai connects to a Prisma deployment in your own environment. Issue an API key from your Prisma instance and point the SDK at it — see the setup guide for deployment, key issuance, and full configuration.

import os
import palqee_prisma_ai

palqee_prisma_ai.init(
    "complaints-review",
    evaluators=["correctness", "hallucination", "policy_adherence"],
    api_key=os.environ["PALQEE_PRISMA_API_KEY"],
    base_url=os.environ["PALQEE_PRISMA_BASE_URL"],  # your Prisma deployment URL
)

# Your existing LLM / agent code — tracing and evaluation are now active.
from openai import OpenAI

client = OpenAI()
response = client.chat.completions.create(
    model="gpt-4o-mini",
    messages=[{"role": "user", "content": "Summarize this complaint..."}],
)
print(response.choices[0].message.content)

Spans flow to Prisma with run_id and project_id attached, evaluators score every interaction server-side, and high-risk cases route to your reviewers.

Configuration

Parameter Environment variable Description
api_key PALQEE_PRISMA_API_KEY Prisma API key (pq_prisma_sk_...) issued from your deployment
base_url PALQEE_PRISMA_BASE_URL Base URL of your Prisma deployment
otel_endpoint PALQEE_PRISMA_OTEL_ENDPOINT OTLP endpoint (auto-derived from base_url if omitted)

Full configuration reference: docs.palqee.com/docs/overview.

With env vars set, init() collapses to one line:

palqee_prisma_ai.init("complaints-review", evaluators=["correctness", "policy_adherence"])

What gets traced

Prisma reads any OpenTelemetry span emitted by your process — including spans from popular LLM instrumentation libraries:

Provider / framework Instrumentation
OpenAI, Anthropic Claude, Meta Llama, Bedrock, Gemini OpenInference or OpenLLMetry
LangChain, LangGraph OpenInference / OpenLLMetry
LlamaIndex OpenInference
CrewAI, AutoGen, Haystack OpenLLMetry
Custom code opentelemetry-api spans

Install your instrumentation of choice alongside palqee-prisma-ai — it works out of the box.

Evaluators

Pass evaluator names to init() and Prisma scores every interaction server-side:

palqee_prisma_ai.init(
    "complaints-review",
    evaluators=["correctness", "hallucination", "toxicity", "policy_adherence"],
)

Custom thresholds and input mapping for domain-specific reviews:

from palqee_prisma_ai import EvaluatorConfig, InputMapping

palqee_prisma_ai.init(
    "underwriting-agent",
    evaluators=[
        EvaluatorConfig(name="policy_adherence", threshold=0.9),
        EvaluatorConfig(name="hallucination", threshold=0.95),
    ],
    input_mapping=InputMapping(input="prompt", output="completion"),
)

See the docs for the full evaluator catalog and bespoke evaluators for regulated workflows.

Session API

init() returns a PrismaSession for inspecting or extending the active run:

session = palqee_prisma_ai.init("complaints-review")

print(session.project.id, session.run.id)

session.end()  # otherwise auto-ended at process exit

Access the active session from anywhere in your process:

from palqee_prisma_ai import get_session

session = get_session()

Downstream integrations

Prisma exports structured results to the tools your risk, compliance, and analytics teams already use:

BI & analytics — Power BI · Tableau · Looker · Sisense Collaboration — Slack · Microsoft Teams · Google Chat Models — OpenAI · Anthropic Claude · Meta Llama

Links

License

MIT © Palqee

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

palqee_prisma_ai-0.5.1.tar.gz (99.1 kB view details)

Uploaded Source

Built Distribution

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

palqee_prisma_ai-0.5.1-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

Details for the file palqee_prisma_ai-0.5.1.tar.gz.

File metadata

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

File hashes

Hashes for palqee_prisma_ai-0.5.1.tar.gz
Algorithm Hash digest
SHA256 6a8705e2fe5c4bdd327feca4cea7d9957d9e323a6789e696e99977a8612cb1d2
MD5 78f510b47ad49434d23dbfaa5f0d1f66
BLAKE2b-256 8318668f80f0839269b3fdaf97661d91e67b9311aaa80d3eba3d5fa07f881568

See more details on using hashes here.

Provenance

The following attestation bundles were made for palqee_prisma_ai-0.5.1.tar.gz:

Publisher: publish.yml on Palqee/prisma-ai

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

File details

Details for the file palqee_prisma_ai-0.5.1-py3-none-any.whl.

File metadata

File hashes

Hashes for palqee_prisma_ai-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c9a68d74c45f33f2911a6ea8358147a3419ed9fd7c5b96f87f2804726d8415ba
MD5 5b57da4803ee5795dc969d3d26993c82
BLAKE2b-256 1e66c13744b3a0ce08a4dcf7be8af1460e1743825552631ef5931f805b510920

See more details on using hashes here.

Provenance

The following attestation bundles were made for palqee_prisma_ai-0.5.1-py3-none-any.whl:

Publisher: publish.yml on Palqee/prisma-ai

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