Keyword search misses the question
Someone asks how to renew a key. The page is called “Rotating a key”, so a search for “renew” finds nothing.
searchrenew api key→ 0 results
CiteDesk answers questions only from your documentation, cites the exact passage behind every sentence, and says “I don’t know” when the docs don’t cover it.
Sample · scripted, not a live answer
3 sourcesHow long do API keys stay valid, and can I rotate one without downtime?
API keys stay valid for 90 days after they're created, and the dashboard warns you 14 days before one expires.1 You can rotate without downtime: create a second key, deploy it, then revoke the first, because both keys work until one is revoked.2 A revoked key stops working everywhere within 60 seconds.3
The problem
Docs nobody can search get asked about instead. The two usual fixes both fail in ways you can’t see.
Someone asks how to renew a key. The page is called “Rotating a key”, so a search for “renew” finds nothing.
searchrenew api key→ 0 results
They write a fluent answer whether or not your docs say it, and nothing shows where it came from, so nobody can check it.
chatbot“Keys last 12 months.”→ no source
See it cite
Select a citation and the passage it came from lights up. In the real app, code checks that every marker points at a passage retrieved for that question.
How long do API keys stay valid, and can I rotate one without downtime?
API keys stay valid for 90 days after they're created, and the dashboard warns you 14 days before one expires. You can rotate without downtime: create a second key, deploy it, then revoke the first, because both keys work until one is revoked. A revoked key stops working everywhere within 60 seconds.
Select a citation to see the passage behind it.
1Security › API keys › Expiry
CitedEach project can hold up to five active keys. Keys expire 90 days after they are created. Fourteen days before expiry, the dashboard shows a warning on the Keys page. Expired keys are kept for audit for one year.
acme.example/docs/security/api-keys#expiry
2Security › API keys › Rotating a key
To rotate without downtime, create a second key, deploy it to your services, and then revoke the first. Both keys are accepted until one is revoked. Rotation does not change a key's permissions.
acme.example/docs/security/api-keys#rotating-a-key
3Security › API keys › Revoking a key
Revocation propagates to every region within 60 seconds. Requests signed with a revoked key return 401.
acme.example/docs/security/api-keys#revoking-a-key
Honest refusal
When the best match is too weak, CiteDesk stops before the model writes anything and points you to the nearest section instead.
Sample · scripted, not a live answer
Is there a discount for nonprofits?
I don’t know.
The docs I can search don’t cover this.
Closest section
Billing › Plans and pricing
It scored below the confidence threshold, so no answer was written.
How it works
This is the architecture being built now. The Evidence section shows what has been measured so far.
Never splits across a heading
Security › API keys › Expiry
Keys expire 90 days after they are created. Fourteen days before expiry, the dashboard shows a warning on the Keys page.
acme.example/docs/security/api-keys#expiry
Security › API keys › Rotating a key
To rotate without downtime, create a second key, deploy it to your services, and then revoke the first. Both keys are accepted until one is revoked.
acme.example/docs/security/api-keys#rotating-a-key
Security › API keys › Revoking a key
Revocation propagates to every region within 60 seconds.
acme.example/docs/security/api-keys#revoking-a-key
Each chunk keeps its heading path and a link to its section. That link is what a citation points at. Sample content.
Docs are split at headings into 500–800-token chunks. Each keeps its heading path and a link to its section.
pgvector · HNSW
Each question runs a vector search and a full-text search. Reciprocal rank fusion merges the two ranked lists.
vector + full-text · RRF
Optionally, a model reorders the top 50 candidates down to 8. If it fails, the fused order is used.
optional · falls back
A weak top score means “I don’t know”, decided before any text is written. Otherwise the model answers from those chunks, and code checks every [n].
streamed · validated
Evidence
Every figure here will come from an eval run file in the repo, the same file the README table is generated from. No runs on the full question set exist yet, so nothing is shown.
| Configuration | Recall@5 | MRR | Cost / query | p95 latency |
|---|---|---|---|---|
| Naive vectorPlanned: week 2 | Pending | Pending | Pending | Pending |
| Hybrid (vector + full-text, RRF)Planned: week 3 | Pending | Pending | Pending | Pending |
| Hybrid + rerankPlanned: week 3 | Pending | Pending | Pending | Pending |
Hallucinated citations
Not measured yet
Target: 0
A marker that points at a passage not retrieved for that question. Checked in code on every answer.
Judge agreement
Not measured yet
Target: ≥ 85%
The groundedness judge against 30 hand-labelled answers, with Cohen’s kappa alongside.
The retrieval set is 40 questions, each labelled with the sections that should be found. It is being written now. The generation set adds 10 questions the docs can’t answer, to measure refusals.
Who it’s for
Answer the repeat question once, with the link that proves it, instead of rewriting it from memory.
Find the rule or the step without knowing what the page is called.
Questions phrased the way your users phrase them, answered in your docs’ own words.
For agencies: an “ask our docs” widget you can hand to a client, with sources they can audit.
PlannedBuilt to be trusted
These are the rules CiteDesk is being built to. The Evidence section shows which ones are measured so far.
Every [n] must point at a passage retrieved for that question. A marker that doesn’t is counted as a hallucinated citation.
A weak retrieval score stops the request before the model writes anything.
Tokens, cost and latency are logged for each call, from the provider’s own usage numbers, never estimates.
Pull requests run the eval suite and fail if a headline metric drops more than 2 points below the committed baseline.
FAQ
One public documentation set, checked for its licence before anything is ingested. It will be named here, with the exact version used, once it’s ingested.
If the best-matching section is too weak, it says “I don’t know” and shows the closest section, so you still know where to look. That decision is made in code before any answer is written.
CiteDesk trains nothing. To write an answer, the question and the retrieved passages are sent to OpenAI’s API, under OpenAI’s API data terms. The demo has no accounts and asks for no personal details; questions are logged to measure answer quality.
Every model call’s tokens and cost are logged. The measured cost per answer will appear in the Evidence section; until it’s measured there’s no number to show.
English docs and questions for now. Asking in Spanish about English docs is planned for after launch.
Try it on the Supabase Database and AI docs, or follow the code and the eval suite as they are built in the open.