A support chatbot that answers from your docs.
A complete RAG chatbot for your website: your help pages are split into passages and embedded with bge-m3 into pgvector, each question pulls the closest passages, and Gemma streams an answer that cites them or says it doesn’t know. Repeated questions are served from a cache, and doubtful cases go to a person instead of getting a guess. Every part runs on Canner in Montréal.
Facts checked
What you’re building
A help widget on your site posts a question to /api/ask. The server embeds the question, checks a cache of earlier answers, retrieves the passages of your help centre closest to it, and streams back an answer written only from those passages, with numbered links to the pages it used. When the docs don’t cover the question, or the model can’t give a consistent answer, the server opens a ticket for your team instead of answering.
It is one Node app (Express, the openai SDK and pg) and one Postgres database. The retrieval part is ordinary pgvector; the pgvector RAG guide covers indexing, hybrid keyword search and filtering in depth, and Search your own documents is the short version. This guide adds what a support bot needs on top: a cache, a confidence check, a handoff and a widget that copes with slow answers.
Architecture: which model does what
| Step | Model or endpoint | When it runs |
|---|---|---|
| Embed help pages | bge-m3 via /v1/embeddings | When a page changes (release command) |
| Embed the question | bge-m3 | Every question |
| Is this the cached question? | granite-4.2-3b via /v1/classify | Only when a cached question is close |
| Write the answer, streamed | gemma-4-26b-a4b via /v1/chat/completions | Clear cases not in the cache |
| Check agreement | gemma-4-26b-a4b via /v1/uncertainty | Hard cases: the best passage is a weak match |
| Hand off | None: a row in tickets and a notification | No relevant passage, low agreement, or “I don’t know” |
Schema: pages, passages, cache, tickets
bge-m3 returns normalised 1,024-dimension vectors, so the column is vector(1024) and cosine distance (<=>) is the right operator. The cache keeps the question’s language: bge-m3 places a French question and its English translation very close together (0.87 to 0.97 in our test), so without the lang filter a French visitor could get a cached English answer.
-- Needs pgvector: canner db extensions <database> install vector
CREATE EXTENSION IF NOT EXISTS vector;
CREATE TABLE docs (
id bigserial PRIMARY KEY,
url text NOT NULL UNIQUE, -- where the widget links a citation
title text NOT NULL,
hash text NOT NULL, -- skip re-embedding unchanged pages
updated_at timestamptz NOT NULL DEFAULT now()
);
CREATE TABLE passages (
id bigserial PRIMARY KEY,
doc_id bigint NOT NULL REFERENCES docs(id) ON DELETE CASCADE,
ord int NOT NULL,
content text NOT NULL,
embedding vector(1024) NOT NULL -- bge-m3
);
CREATE INDEX ON passages USING hnsw (embedding vector_cosine_ops);
CREATE TABLE answer_cache (
id bigserial PRIMARY KEY,
lang text NOT NULL, -- 'en' or 'fr': never serve an English answer to a French question
question text NOT NULL,
embedding vector(1024) NOT NULL,
answer text NOT NULL,
sources jsonb NOT NULL,
hits int NOT NULL DEFAULT 0,
created_at timestamptz NOT NULL DEFAULT now()
);
CREATE INDEX ON answer_cache USING hnsw (embedding vector_cosine_ops);
CREATE TABLE tickets (
id bigserial PRIMARY KEY,
question text NOT NULL,
email text,
draft text, -- the model's answer, for the person who replies
agreement real,
reason text NOT NULL,
status text NOT NULL DEFAULT 'open',
created_at timestamptz NOT NULL DEFAULT now()
);Ingest: chunk, embed, store
The script reads a folder of Markdown pages, packs whole paragraphs into passages of up to about 250 words, and prefixes each passage with its page title so a passage still makes sense on its own. A hash of each file means a page that hasn’t changed is never embedded again, so you can run it on every deploy. Changed passages go to the embeddings endpoint in batches of up to 128 texts, and the cache is cleared whenever a page changes, because a cached answer may quote the old version.
The endpoints take text only. Export PDFs and other formats to text or Markdown first, and run OCR on scanned documents before they reach this script.
// node ingest.js ./help-center (Markdown files, one page each, "# Title" on the first line)
import { createHash } from "node:crypto";
import fs from "node:fs/promises";
import path from "node:path";
import OpenAI from "openai";
import pg from "pg";
const ai = new OpenAI(); // OPENAI_BASE_URL + OPENAI_API_KEY from the attached endpoint
const db = new pg.Pool({ connectionString: process.env.DATABASE_URL, max: 2 });
// Pack whole paragraphs into passages of up to ~250 words.
function chunk(text, maxWords = 250) {
const out = [];
let cur = [], words = 0;
for (const p of text.split(/\n\s*\n/).map((s) => s.trim()).filter(Boolean)) {
const n = p.split(/\s+/).length;
if (words + n > maxWords && cur.length) { out.push(cur.join("\n\n")); cur = []; words = 0; }
cur.push(p);
words += n;
}
if (cur.length) out.push(cur.join("\n\n"));
return out;
}
const dir = process.argv[2];
const pages = [];
for (const file of (await fs.readdir(dir)).filter((f) => f.endsWith(".md"))) {
const raw = await fs.readFile(path.join(dir, file), "utf8");
const title = raw.match(/^# (.+)$/m)?.[1] ?? file;
const url = `/help/${file.replace(/\.md$/, "")}`;
const hash = createHash("sha256").update(raw).digest("hex");
const { rows } = await db.query("SELECT 1 FROM docs WHERE url = $1 AND hash = $2", [url, hash]);
if (rows.length) continue; // unchanged: don't embed again
const passages = chunk(raw.replace(/^# .+$/m, "")).map((p) => `${title}\n\n${p}`);
pages.push({ url, title, hash, passages });
}
// Embed every changed passage, up to 128 texts per request.
const all = pages.flatMap((p) => p.passages);
const vectors = [];
for (let i = 0; i < all.length; i += 128) {
const r = await ai.embeddings.create({ model: "bge-m3", input: all.slice(i, i + 128) });
vectors.push(...r.data.map((d) => JSON.stringify(d.embedding)));
}
const client = await db.connect();
try {
await client.query("BEGIN");
let k = 0;
for (const p of pages) {
const { rows: [doc] } = await client.query(
`INSERT INTO docs (url, title, hash) VALUES ($1, $2, $3)
ON CONFLICT (url) DO UPDATE SET title = $2, hash = $3, updated_at = now()
RETURNING id`, [p.url, p.title, p.hash]);
await client.query("DELETE FROM passages WHERE doc_id = $1", [doc.id]);
for (const [ord, content] of p.passages.entries()) {
await client.query(
"INSERT INTO passages (doc_id, ord, content, embedding) VALUES ($1, $2, $3, $4)",
[doc.id, ord, content, vectors[k++]]);
}
}
if (pages.length) await client.query("DELETE FROM answer_cache"); // cached answers may be out of date
await client.query("COMMIT");
} catch (e) {
await client.query("ROLLBACK");
throw e;
} finally {
client.release();
}
console.log(`${pages.length} pages changed, ${all.length} passages embedded`);
await db.end();The /api/ask route
The route answers as a stream of server-sent events: status lines for the widget’s progress label, sources, text pieces as the model writes them, then handoff or done. It writes a comment line every 10 seconds while it waits, so no proxy between the visitor and your app closes a connection that looks idle.
- Cache first. The closest cached question in the same language is a candidate when its similarity is 0.85 or more. Granite’s classify endpoint then decides whether the two questions really ask the same thing; the cached answer is reused only when it says so with probability 0.8 or more.
- No relevant passage, no model call. When the best passage scores under 0.45 the docs don’t cover the question. The route opens a ticket straight away: a support question your docs can’t answer is exactly what a person should see.
- Hard cases are checked. Between 0.45 and 0.60 the passages are a weak match. The route asks Gemma three times through
/v1/uncertainty; if the answers disagree (agreementunder 0.8: with three answers, any one that differs) or the consensus is “I don’t know”, a person gets the question and the draft. - Clear cases stream. Above 0.60 Gemma writes the answer from the four closest passages and the route forwards each piece as it arrives. Complete answers are cached; “I don’t know” answers become tickets.
- The prompt does the grounding. Gemma is told to use only the numbered passages, cite them like
[1], answer in the visitor’s language and reply exactly “I don’t know” otherwise. The route detects that phrase to hand off.
import express from "express";
import OpenAI from "openai";
import pg from "pg";
const ai = new OpenAI({ maxRetries: 3 }); // retries 429 server_busy after Retry-After
const db = new pg.Pool({ connectionString: process.env.DATABASE_URL, max: 5 });
// Measured on our own help centre; measure yours (see "Pick the thresholds").
const RELEVANT = 0.45; // best passage below this: the docs don't cover it, don't call the model
const CLEAR = 0.60; // best passage below this: a hard case, check agreement first
const CACHE_NEAR = 0.85; // cached question at least this close: ask Granite if it's the same question
const SAME = 0.8; // Granite's probability that it is
const AGREE = 0.8; // with n = 3: all three answers must agree; below this, a person answers
const SYSTEM = {
en: "You answer questions about Tidewater, a booking app for clinics, using only the numbered passages. " +
"Cite the passages you used like [1]. If the passages do not contain the answer, reply only: I don't know. " +
"Answer in English, in under 120 words.",
fr: "Tu réponds aux questions sur Tidewater, une application de réservation pour cliniques, seulement à partir " +
"des passages numérotés. Cite les passages utilisés ainsi : [1]. Si les passages ne contiennent pas la " +
"réponse, réponds seulement : Je ne sais pas. Réponds en français, en moins de 120 mots.",
};
const DONT_KNOW = /^(i don['’]t know|je ne sais pas)/i;
const app = express();
app.use(express.json());
app.use(express.static("public"));
app.post("/api/ask", async (req, res) => {
const question = String(req.body.question ?? "").trim().slice(0, 500);
const lang = req.body.lang === "fr" ? "fr" : "en";
const email = req.body.email ? String(req.body.email).slice(0, 200) : null;
if (!question) return res.status(400).json({ error: "question is required" });
res.writeHead(200, { "Content-Type": "text/event-stream", "Cache-Control": "no-store" });
const send = (event) => res.write(`data: ${JSON.stringify(event)}\n\n`);
const beat = setInterval(() => res.write(": waiting\n\n"), 10_000); // keep proxies from closing a quiet stream
const handoff = async (reason, draft = null, agreement = null) => {
const { rows: [t] } = await db.query(
"INSERT INTO tickets (question, email, draft, agreement, reason) VALUES ($1, $2, $3, $4, $5) RETURNING id",
[question, email, draft, agreement, reason]);
await notifySupport(t.id, question, email);
send({ type: "handoff", ticket: t.id });
};
try {
send({ type: "status", text: "Searching the help centre" });
const e = await ai.embeddings.create({ model: "bge-m3", input: question });
const q = JSON.stringify(e.data[0].embedding);
// 1. Answer cache: a close question in the same language, confirmed by Granite.
const { rows: [hit] } = await db.query(
`SELECT id, question, answer, sources, 1 - (embedding <=> $1) AS similarity
FROM answer_cache WHERE lang = $2 ORDER BY embedding <=> $1 LIMIT 1`, [q, lang]);
if (hit && hit.similarity >= CACHE_NEAR && await sameQuestion(question, hit.question)) {
await db.query("UPDATE answer_cache SET hits = hits + 1 WHERE id = $1", [hit.id]);
send({ type: "sources", sources: hit.sources });
send({ type: "text", text: hit.answer });
return send({ type: "done", cached: true });
}
// 2. Retrieve the closest passages.
const { rows: passages } = await db.query(
`SELECT p.content, d.title, d.url, 1 - (p.embedding <=> $1) AS similarity
FROM passages p JOIN docs d ON d.id = p.doc_id
ORDER BY p.embedding <=> $1 LIMIT 4`, [q]);
const best = passages[0]?.similarity ?? 0;
if (best < RELEVANT) { // nothing relevant: no model call at all
await handoff("not in the docs");
return send({ type: "done" });
}
const sources = passages.map((p, i) => ({ n: i + 1, title: p.title, url: p.url }));
const messages = [
{ role: "system", content: SYSTEM[lang] },
{ role: "user", content: passages.map((p, i) => `[${i + 1}] ${p.content}`).join("\n\n") +
`\n\nQuestion: ${question}` },
];
send({ type: "sources", sources });
// 3. Hard case: ask several times and see whether the answers agree.
if (best < CLEAR) {
send({ type: "status", text: "Checking the answer" });
const u = await ai.post("/uncertainty", {
body: { model: "gemma-4-26b-a4b", n: 3, max_tokens: 250, messages },
});
if (u.agreement < AGREE || !u.answer || DONT_KNOW.test(u.answer.trim())) {
await handoff(u.agreement < AGREE ? "answers disagree" : "not in the docs", u.answer, u.agreement);
return send({ type: "done" });
}
send({ type: "text", text: u.answer });
return send({ type: "done", agreement: u.agreement });
}
// 4. Clear case: stream the answer as it is written.
send({ type: "status", text: "Writing the answer" });
const stream = await ai.chat.completions.create({
model: "gemma-4-26b-a4b", messages, max_tokens: 400, stream: true,
});
let answer = "", finish = null;
for await (const chunk of stream) {
const c = chunk.choices[0];
if (c?.delta?.content) { answer += c.delta.content; send({ type: "text", text: c.delta.content }); }
if (c?.finish_reason) finish = c.finish_reason;
}
if (DONT_KNOW.test(answer.trim())) await handoff("model said it doesn't know", answer);
else if (finish === "stop") {
await db.query(
"INSERT INTO answer_cache (lang, question, embedding, answer, sources) VALUES ($1, $2, $3, $4, $5)",
[lang, question, q, answer, JSON.stringify(sources)]);
}
send({ type: "done" });
} catch (err) {
console.error(err);
send({ type: "error", busy: err.status === 429 || err.status === 503 });
} finally {
clearInterval(beat);
res.end();
}
});
// Granite's calibrated yes/no: is the new question the same as the cached one?
async function sameQuestion(a, b) {
const r = await ai.post("/classify", {
body: {
model: "granite-4.2-3b",
instruction: "Do these two customer questions ask for the same information, so that one answer fits both?",
input: `Question 1: ${a}\nQuestion 2: ${b}`,
labels: ["same question", "different question"],
},
});
return r.labels.find((l) => l.label === "same question").probability >= SAME;
}
// Replace with your helpdesk's API or an email to your support inbox.
async function notifySupport(ticketId, question, email) {
console.log(`ticket ${ticketId} from ${email ?? "anonymous"}: ${question}`);
}
app.listen(process.env.PORT || 3000);The widget: stream, and show that it’s working
A long answer from Gemma takes tens of seconds; with other requests ahead in the queue it can take longer. This is not an instant chat window, so the widget has to say what is happening: it shows the current step and the seconds elapsed, then the answer as it is written. EventSource can’t send a POST, so the widget reads the stream with fetch. Give the answer box white-space: pre-wrap to keep the model’s line breaks.
// <script type="module" src="/widget.js"></script> next to a form with a question box, an answer box,
// a status line and a sources list.
export async function askSupport(question, ui, { lang = "en", email } = {}) {
const started = Date.now();
let label = "Sending";
const tick = setInterval(() => {
ui.status.textContent = `${label}… ${Math.round((Date.now() - started) / 1000)} s`;
}, 1000);
ui.answer.textContent = "";
ui.sources.replaceChildren();
try {
const res = await fetch("/api/ask", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ question, lang, email }),
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const reader = res.body.pipeThrough(new TextDecoderStream()).getReader();
let buf = "";
for (;;) {
const { value, done } = await reader.read();
if (done) break;
buf += value;
const events = buf.split("\n\n");
buf = events.pop();
for (const raw of events) {
if (!raw.startsWith("data: ")) continue; // ": waiting" heartbeats
const ev = JSON.parse(raw.slice(6));
if (ev.type === "status") label = ev.text;
else if (ev.type === "text") ui.answer.textContent += ev.text;
else if (ev.type === "sources") {
for (const s of ev.sources) {
const a = document.createElement("a");
a.href = s.url;
a.textContent = `[${s.n}] ${s.title}`;
ui.sources.append(a, " ");
}
} else if (ev.type === "handoff") {
ui.answer.textContent = `A person from our team will answer this (request #${ev.ticket}).`;
} else if (ev.type === "error") {
ui.answer.textContent = ev.busy ? "The assistant is busy. Try again in a minute." : "Something went wrong.";
}
}
}
} finally {
clearInterval(tick);
ui.status.textContent = "";
}
}
if (typeof document !== "undefined" && document.querySelector("#ask")) {
const form = document.querySelector("#ask");
const ui = { answer: form.querySelector(".answer"), status: form.querySelector(".status"),
sources: form.querySelector(".sources") };
form.addEventListener("submit", (e) => {
e.preventDefault();
askSupport(form.question.value, ui, { lang: document.documentElement.lang.slice(0, 2) || "en",
email: form.email?.value || undefined });
});
}Pick the thresholds on your own data
Similarity scores depend on the model, the language and how your docs are written, so treat the numbers in the code as a starting point. Here is what we measured with bge-m3 on a nine-page test help centre for a booking app:
- No embedding threshold alone makes a safe cache. The highest near miss (0.93) scored above most real paraphrases. A threshold above 0.93 would only catch near-identical wording; anything lower would sometimes serve the wrong answer. That’s why the code uses similarity to find a candidate and Granite to confirm it.
- To pick your cache threshold, take a few dozen question pairs from your logs, mark each pair same or different, and print their similarity with the script below. The 0.85 in the code is cautious: in our test it let through half the paraphrases (6 of 12) and half the near misses, and the Granite check sorted those out. A lower threshold catches more repeats but runs the Granite check more often. Raise
SAMEif a reviewer ever finds a cached answer that didn’t fit. - To pick the retrieval thresholds, run real questions you can and can’t answer through the retrieval query and look at the best score for each. Put
RELEVANTunder the lowest answerable score andCLEARwhere the two groups stop overlapping. In our test the out-of-scope maximum (0.58) sat just under the in-scope minimum (0.61); your corpus will differ.
// node pairs.js: the similarity of question pairs taken from your own logs
import OpenAI from "openai";
const ai = new OpenAI();
const pairs = [
["same", "How do I cancel an appointment?", "How can a client cancel their booking?"],
["same", "how do i turn on 2fa", "How do I set up two-step verification?"],
["different", "Does Tidewater sync with Google Calendar?", "Does Tidewater sync with iCloud Calendar?"],
["different", "How do I export my client list?", "How do I import my client list?"],
];
const r = await ai.embeddings.create({ model: "bge-m3", input: pairs.flatMap(([, a, b]) => [a, b]) });
const v = r.data.map((d) => d.embedding);
for (const [i, [kind, a, b]] of pairs.entries()) {
const sim = v[2 * i].reduce((s, x, k) => s + x * v[2 * i + 1][k], 0); // bge-m3 vectors are normalised
console.log(kind.padEnd(9), sim.toFixed(3), a, "|", b);
}| Pair or query | Cosine similarity | What it means |
|---|---|---|
| Same question, different words (12 pairs) | 0.62 to 0.95 | Paraphrases spread widely: “how do i turn on 2fa” vs “How do I set up two-step verification?” scored 0.62 |
| Same topic, different answer (10 pairs) | 0.65 to 0.93 | “sync with Google Calendar?” vs “sync with iCloud Calendar?” scored 0.93 and needs the opposite answer |
| A question and its French translation | 0.87 to 0.97 | Hence the lang column on the cache |
| In-scope questions → best passage | 0.61 to 0.67 | Answerable from the docs |
| Out-of-scope questions → best passage | 0.30 to 0.58 | Pricing, an Android app, trivia: not in the docs |
| Granite “same question” check | Paraphrases 0.92 to 0.96, near misses 0.03 to 0.36 | Probability of “same question”, 7 of 7 pairs on the right side of 0.8 |
Escalation: when a person answers instead
/v1/uncertainty asks the model the same thing several times and groups the answers by meaning. agreement is the share of answers in the largest group: 1 means every answer said the same thing. Low agreement is a reliable sign that the model is guessing, so the route treats it as a reason to hand over rather than a reason to retry. Each check costs about n times an ordinary answer and doesn’t stream, which is why the route keeps n at 3, caps the answer length, and uses it only on hard cases.
In our test, “Does Tidewater have an Android app?” scored 0.58 against the best passage, went to the uncertainty check, and all three answers were “I don’t know”, so it became a ticket. “What is the capital of Australia?” scored 0.30 and became a ticket without any model call.
notifySupport is where your helpdesk or email goes. Ask for the visitor’s email in the widget (the route stores it on the ticket), and rate-limit /api/ask per visitor so nobody can fill your queue with tickets.
Deploy it on Canner
pgvector needs the Dedicated Postgres add-on: on the shared cluster only Canner can install extensions. Create an AI endpoint with the three models, attach it to the project and redeploy; the project then has OPENAI_BASE_URL and OPENAI_API_KEY, which the openai SDK reads with no configuration. If the project already sets its own OPENAI_* variables, the endpoint’s are also available as CANNER_AI_BASE_URL and CANNER_AI_API_KEY.
Run the ingest script as the release command so docs committed with your code are embedded on each production deploy. If the AI service is busy and the script fails, the deploy stops and the current version keeps running; deploy again. A large first import belongs in a background job or a separate Worker project.
# Dedicated Postgres add-on first, then:
canner db extensions <database> install vector
psql "<connection string>" -f schema.sql # turn on external access first, or use your migration tool
canner ai create support-bot --models gemma-4-26b-a4b,granite-4.2-3b,bge-m3
canner ai attach support-bot # in the project folder
canner redeploy # the project now has OPENAI_BASE_URL and OPENAI_API_KEY
# Settings → Build → Release command: re-embeds only the pages that changed
node ingest.js ./help-centerKeep usage down
Usage is measured in model time, with a monthly allowance per plan; see AI endpoints for current allowances. The most expensive thing this app does is a Gemma answer, and the most expensive of those is the uncertainty check. Everything else is cheap by comparison.
- Don’t call Gemma when the docs can’t help. The
RELEVANTfloor turns out-of-scope questions into tickets for the price of one embedding. - Cache. Support questions repeat. A Granite check on a close cached question takes a fraction of the time of a new answer.
- Cap the answer. “Under 120 words” in the prompt and
max_tokenson the request keep answers short; long answers cost more and take longer. - Embed once. The hash skips unchanged pages, and batches of up to 128 texts keep ingestion to a few requests.
- Use Granite where it is good enough: one-fact answers, the cache check, sorting questions by topic.
- Set a requests-per-minute limit on the endpoint in the dashboard so a bot or a loop can’t spend the month’s allowance in an afternoon.
Limits, and when another tool fits better
- Speed. The models run on processors, not GPUs, and answer one request at a time across the service, with paid plans first. A request waits up to 2 minutes, and an organization can have 4 waiting; beyond that you get
429 server_busywithRetry-After, which the SDK retries. A busy support site with many simultaneous visitors will queue. - Context. Gemma takes up to 16,384 tokens of context and writes up to 2,048. Four passages of a few hundred words fit easily; a whole manual doesn’t.
- Text in, text out. No images, no PDFs, no voice. Convert or OCR first.
- Content policy. Chat and uncertainty requests are checked by a safety model. A blocked request gets
400 content_filter; a blocked streamed answer is recorded, not stopped. Embeddings and classify are not checked. - Your data. Prompts and answers are processed in memory in Montréal and not stored, nothing is sent to another company, and nothing is used for training. The passages, cache and tickets live in your own database.
Questions
What is a RAG chatbot?
A chatbot that retrieves passages from your own documents and gives them to a language model with the question, so the answer comes from your content rather than from what the model learned in training. It can cite the pages it used and say when they don’t contain the answer.
How fast does the chatbot answer?
A cached answer comes back much sooner than a new one, because nothing has to be written. A new answer from Gemma takes tens of seconds to finish, longer when other requests are queued, so the widget streams it and shows progress. Hard cases checked with /v1/uncertainty take longer still, because the model answers several times.
Can it answer in French and English from the same docs?
Yes. bge-m3 puts both languages in one vector space, so a French question finds an English passage, and the prompt tells Gemma to answer in the visitor’s language. In our test a French question about exporting clients was answered in French from an English page. Keep the language on cached answers so a French visitor never gets an English one.
How do I stop the chatbot from making things up?
Answer only from retrieved passages, ask for citations, tell the model to say “I don’t know”, skip the model entirely when no passage is relevant, and check doubtful cases with /v1/uncertainty, handing low-agreement answers to a person.
Does the chatbot need a dedicated database?
On Canner, yes: pgvector needs the Dedicated Postgres add-on, because only Canner installs extensions on the shared cluster. Then install pgvector with canner db extensions <database> install vector.
Related
- GuideSemantic and hybrid search in Postgres
- GuideRelated articles, recommendations and reranking
- GuideTriage support tickets and email automatically
- GuideExtract invoice and form data into Postgres
- GuideAn assistant that answers questions from your database
- GuideSummarise email threads and meeting notes
A support chatbot on models hosted in Montréal.
Add Dedicated Postgres, create an AI endpoint and attach it to your project. See AI endpoints for models and allowances.