molecule.v1 · Company Brain API
The shared company brain, behind one API
Policy-scoped retrieval, grounded answers, and evals over your organization's knowledge. Every product queries one brain instead of building its own RAG stack.
Policy-scoped by construction
The API key is the principal. Audience and clearance come from the key, never the request — a public visitor and an internal agent ask the same query and get correctly different answers.
One fused retrieval
Public and private knowledge come back in a single ranked list, filtered by an ACL-token intersection — no two-database merge, no leaks.
Evals as a first-class plane
Datasets, experiments, scorers, and span-level traces — a braintrust-style console for measuring retrieval and answer quality over every iteration.
POST /v1/answer
curl https://brain.example.com/v1/answer \
-H "Authorization: Bearer sa_live_..." \
-H "Content-Type: application/json" \
-d '{ "query": "how do I port my number?", "surface": "site_chatbot" }'