Introduction
Lemma provides deterministic, verifiable knowledge retrieval for FDA drug labels with complete traceability. Unlike traditional AI systems that provide probabilistic results, Lemma uses binary fingerprints and Hamming distance to ensure zero false positives and cryptographic-level verification.
Key Features
Deterministic Retrieval
XOR-based Hamming distance for exact pattern matching. Every search returns the same results every time - no probabilistic ranking, no hidden algorithms.
Cryptographic Verification
128-bit binary fingerprints for citation proof. Anyone can independently verify that a citation corresponds to exact FDA source text with mathematical certainty.
Complete Provenance
Direct links to official FDA sources (DailyMed). Every piece of information traces back to a verifiable government source.
Zero Hallucinations
All information sourced from verified FDA documents. The system cannot generate or infer information - it only returns what exists in official documents.
Court-Admissible
Mathematical proof of citations for legal use. Fingerprints provide cryptographic evidence that can be independently verified in court proceedings.
How It Works
Complete Integration Flow
Your AI App Queries Lemma
{
"question": "aspirin side effects",
"top_k": 5
}Lemma Returns Verified FDA Sources
{
"results": [
{
"text": "Stop use and ask a doctor if pain gets worse...",
"fingerprint": "11110011110101100001010001100111...",
"drug": {
"name": "aspirin",
"manufacturer": "P & L Development, LLC",
"ndc": ["59726-867"],
"route": ["ORAL"]
},
"section": "Warnings",
"source": {
"url": "https://dailymed.nlm.nih.gov/..."
}
}
]
}Send to Your LLM as Context
LLM Response:
"Based on FDA sources, aspirin may cause several side effects. Stop using aspirin if pain worsens or lasts more than 10 days.
[Citation: fp:11110011110101100001...]"
User Can Verify Any Claim
{
"verified": true,
"text": "Stop use and ask a doctor if pain gets worse...",
"source": {
"url": "https://dailymed.nlm.nih.gov/..."
}
}Cryptographic proof that claim came from FDA source
Next Steps
Ready to get started? Follow our quickstart guide to make your first API request.
Get Started