Skip to content
In the lab · demo live

Answers you can check.

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 sources

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.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

  • 1Security › API keys › Expiry
  • 2Security › API keys › Rotating a key
  • 3Security › API keys › Revoking a key

The problem

The same questions, every week.

Docs nobody can search get asked about instead. The two usual fixes both fail in ways you can’t see.

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

Generic chatbots answer anyway

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

Every sentence points at its source.

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.

Try a sample:
Sample · scripted, not a live answer

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.

  1. 1Security › API keys › Expiry

    Cited

    Each 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

  2. 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

  3. 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

A wrong answer costs more than no answer.

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.

  • Decided in code from the retrieval score, not by asking the model to be careful.
  • The threshold is tuned on questions the docs can’t answer, so refusals are measured too.
  • You still get somewhere to look: the closest section by name.

How it works

Four steps, each one measurable.

This is the architecture being built now. The Evidence section shows what has been measured so far.

One docs page, split at its headings

Never splits across a heading

  1. 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

  2. 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

  3. 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.

  1. Step 1: Ingest

    Docs are split at headings into 500–800-token chunks. Each keeps its heading path and a link to its section.

    pgvector · HNSW

  2. Step 2: Retrieve

    Each question runs a vector search and a full-text search. Reciprocal rank fusion merges the two ranked lists.

    vector + full-text · RRF

  3. Step 3: Rerank

    Optionally, a model reorders the top 50 candidates down to 8. If it fails, the fused order is used.

    optional · falls back

  4. Step 4: Answer

    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

Numbers, not adjectives.

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.

Retrieval ablation on 40 labelled questions. All results pending: no eval runs on the full set exist yet.
ConfigurationRecall@5MRRCost / queryp95 latency
Naive vectorPlanned: week 2PendingPendingPendingPending
Hybrid (vector + full-text, RRF)Planned: week 3PendingPendingPendingPending
Hybrid + rerankPlanned: week 3PendingPendingPendingPending

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

For anyone who answers the same question twice.

Support and ops teams

Answer the repeat question once, with the link that proves it, instead of rewriting it from memory.

New hires and students

Find the rule or the step without knowing what the page is called.

Developer-docs teams

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.

Planned

Built to be trusted

Rules the code enforces.

These are the rules CiteDesk is being built to. The Evidence section shows which ones are measured so far.

  • Citations checked in code

    Every [n] must point at a passage retrieved for that question. A marker that doesn’t is counted as a hallucinated citation.

  • Refusal before generation

    A weak retrieval score stops the request before the model writes anything.

  • Every model call costed

    Tokens, cost and latency are logged for each call, from the provider’s own usage numbers, never estimates.

  • A regression gate in CI

    Pull requests run the eval suite and fail if a headline metric drops more than 2 points below the committed baseline.

FAQ

Before you ask.

Which docs does it answer from?

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.

What happens when it doesn’t know?

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.

Are my questions used for training?

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.

What does an answer cost?

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.

Which languages does it support?

English docs and questions for now. Asking in Spanish about English docs is planned for after launch.

Ask the docs something.

Try it on the Supabase Database and AI docs, or follow the code and the eval suite as they are built in the open.