A chatbot that cites your documents
A chatbot that makes things up is worse than none. Beru answers only from the documents you give it and cites them: every answer carries numbered sources, with the document and page each claim came from. If no document supports an answer, it says it doesn’t know.
How it works
Section titled “How it works”- You upload documents. Beru splits them into passages and indexes them for both meaning and exact wording.
- For each question, it finds the most relevant passages (hybrid search, plus reranking on the Build and Scale plans).
- The model is told to answer only from those numbered passages and to cite
them as
[1],[2]… after each sentence. - Beru checks the citations: only numbers that match a retrieved passage count, and an answer with no valid citation is marked not answered.
On your website, without code
Section titled “On your website, without code”Turn on Go live in the console and paste the snippet into your site. Visitors see the answer only: Beru still answers from your documents and records the sources of every answer for you. To show visitors where each answer came from, such as “[1] Price list.pdf, page 2”, turn on Show sources under answers. See Website chat widget for every setting, or Add an AI receptionist to your clinic website for a walk-through. For support teams, see Beru for customer support.
From your own app
Section titled “From your own app”curl https://api.beru.airesearchlabs.si/v1/answer \ -H "Authorization: Bearer $BERU_API_KEY" \ -H "Content-Type: application/json" \ -d '{"query": "Do you deliver on Sundays?"}'from beru import Beru
answer = Beru().answer("Do you deliver on Sundays?")import { Beru } from "beru-ai";
const answer = await new Beru().answer({ query: "Do you deliver on Sundays?" });{ "answer": "We deliver Monday to Saturday; there are no Sunday deliveries [1].", "citations": [ { "number": 1, "document_title": "Delivery policy.pdf", "page_from": 1, "page_to": 1, "document_id": "…", "chunk_id": "…" } ], "answered": true, "source": "generated"}Show citations next to the answer in your UI, and link each number to the
document or page. Use answered to decide what to do when Beru couldn’t answer:
offer a human, a contact form or a search.
source |
Meaning |
|---|---|
generated |
written by the model from your documents, with citations |
pinned |
an answer you wrote and pinned for this question |
no_sources |
nothing relevant in your documents; Beru says it doesn’t know |
escalation |
a question your template routes to a person (e.g. urgent health symptoms) |
When the documents don’t have the answer
Section titled “When the documents don’t have the answer”Beru won’t fill the gap with guesses. The question appears in Unanswered in the console, grouped with similar ones, so you can add a document or pin an answer. 👎 ratings from your users land there too.