LLM/ML Observability and Evaluation
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
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
- Documentation: docs.palqee.com/docs/overview
- Website: palqee.com
- Support: support@palqee.com
License
MIT © Palqee
Project details
Release history Release notifications | RSS feed
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 palqee_prisma_ai-0.5.0.tar.gz.
File metadata
- Download URL: palqee_prisma_ai-0.5.0.tar.gz
- Upload date:
- Size: 99.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e953d2eab5734300876cd25ec6d2ffb5e6fb7a06b9476effcf12e4f28b9bcdf
|
|
| MD5 |
8dfeb8ffdf1eb3218bf3487b231be438
|
|
| BLAKE2b-256 |
5089e0951eb0ad1d55131b0a9d979a81d0ec3aa3c9bacfadd413910c653a2a97
|
Provenance
The following attestation bundles were made for palqee_prisma_ai-0.5.0.tar.gz:
Publisher:
publish.yml on Palqee/prisma-ai
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
palqee_prisma_ai-0.5.0.tar.gz -
Subject digest:
6e953d2eab5734300876cd25ec6d2ffb5e6fb7a06b9476effcf12e4f28b9bcdf - Sigstore transparency entry: 1630876042
- Sigstore integration time:
-
Permalink:
Palqee/prisma-ai@563f80ae3c69901b9d6615b81bc968dbf726411a -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Palqee
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@563f80ae3c69901b9d6615b81bc968dbf726411a -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file palqee_prisma_ai-0.5.0-py3-none-any.whl.
File metadata
- Download URL: palqee_prisma_ai-0.5.0-py3-none-any.whl
- Upload date:
- Size: 16.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a718e4668d078e7254741bf800bffbce5aea8de6d4ad3fbbf325285480e2ce35
|
|
| MD5 |
06c2384e000c397e0855d42969e7f438
|
|
| BLAKE2b-256 |
5fd9df8c4c59919f16a0da5dafe2e822ad3270398f7ef0b247d381e658e6b453
|
Provenance
The following attestation bundles were made for palqee_prisma_ai-0.5.0-py3-none-any.whl:
Publisher:
publish.yml on Palqee/prisma-ai
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
palqee_prisma_ai-0.5.0-py3-none-any.whl -
Subject digest:
a718e4668d078e7254741bf800bffbce5aea8de6d4ad3fbbf325285480e2ce35 - Sigstore transparency entry: 1630876051
- Sigstore integration time:
-
Permalink:
Palqee/prisma-ai@563f80ae3c69901b9d6615b81bc968dbf726411a -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Palqee
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@563f80ae3c69901b9d6615b81bc968dbf726411a -
Trigger Event:
workflow_dispatch
-
Statement type: