Help & Documentation

Everything Hispanusa can do — every feature, every parameter, with worked examples.

What is Hispanusa

Hispanusa turns your documents into a private, cited question-answering system. You point it at your content — files, drives, wikis, databases — and it ingests, indexes, and answers questions about it, always showing the exact passages each answer came from. Nothing is invented: answers are grounded in your sources.

A RAG ("retrieval-augmented generation") is a single knowledge base: a named collection of documents you can ask questions of. You can have as many as you like — one per team, product, or project — each isolated with its own access control.

INGEST — runs once per document, in the backgroundExtracttext · OCR · ASRChunkstructure-awareEnrichdedup · PIIEmbed→ vectorsIndexvector + BM25ASK — runs per questionRetrievedense + keywordFuse (RRF)+ rerankGroundcite + verifyAnswerwith citations

Two things happen. When you add content, each document flows through the ingest pipeline (top) — extracted to text, split into chunks, embedded into vectors, and indexed. When you ask a question (bottom), the platform retrieves the most relevant chunks, fuses keyword and semantic matches, and an AI model writes an answer citing them.

New here? Jump to Quick start — you'll have a working knowledge base answering questions in about three minutes.

Quick start

From zero to answered question in four steps.

  1. 1

    Create a RAG

    Go to RAGs → New RAG. Give it a name (e.g. "Product Docs"). The wizard picks sensible defaults — you can change everything later in Settings.
  2. 2

    Add content

    Open the RAG → Documents tab → drag files in, or click Add source to sync a folder, website, Drive, or database. Watch each document animate through the pipeline live.
  3. 3

    Ask

    Switch to the Ask tab and type a question. The answer arrives with numbered citations — click any to open the exact source passage.
  4. 4

    Tune (optional)

    Not happy with an answer? The Settings tab and Retrieval & quality controls let you sharpen it — chunking, reranking, grounding strictness, and more.
Every paid plan includes the built-in Hispanusa LLM, Hispanusa Embed, and Hispanusa Vision models, so answers and embeddings work out of the box — no API keys to set up.

Creating & managing RAGs

The create wizard

The wizard walks you through naming the RAG and choosing a starting profile. Behind the scenes it stores per-RAG config (chunking, grounding, reranking) that you can edit any time on the RAG's Settings tab — changes there apply per-RAG and don't affect your other knowledge bases.

The tabs of a RAG

ParameterWhat it doesDefaultWhen to change it
AskChat with the knowledge base; answers arrive with citations.——
TracesInspect exactly how each past answer was retrieved and scored.——
EvalMeasure answer quality against a golden set of questions.——
DocumentsUpload, search/filter, and watch live ingestion; manage sources.——
MapA rotatable 3-D map of your document vectors — see topic clusters.——
ConnectUse this RAG from outside the app (MCP, OpenAI-compatible API).——
SettingsPer-RAG chunking, grounding, reranking; re-index; delete.——

Re-indexing

Change chunking or switch the embedding model and existing documents keep their old vectors until you Re-index (Settings tab). Re-indexing rebuilds every document from its stored file with the current settings — no re-upload, no delete. It runs in the background; watch it on the Documents tab.

Stopping & deleting

While a RAG is ingesting, a red Stop button appears in the header — it halts everything in flight so you can retry or delete. Delete (Settings → Danger zone) removes the RAG and every document, chunk, connector, and index entry. Both are irreversible; a confirmation guards the delete.

Sharing knowledge bases

Share a knowledge base you own with someone in another account — they get access without you copying or re-uploading anything. Sharing is available on the hosted platform.

Inviting people

  1. 1

    Open the RAG you own

    Only the owner sees the Share button — it's in the header, next to the chunk/doc badges.
  2. 2

    Enter one or more emails

    Comma- or space-separated. Pick the access level for the batch.
  3. 3

    Choose Viewer or Editor

    Viewer can open, search, and chat (read-only). Editor can also upload and remove documents. Neither can change visibility, delete, or re-share it — those stay with you.
  4. 4

    Send invite

    Each person gets a branded email explaining who shared what, with an Accept button. Invites expire in 14 days.

Accepting an invite

The recipient clicks Accept → lands on /rags/accept. If they aren't signed in, they're prompted to log in or create an account with the same email the invite was sent to; the invite is then applied automatically. The shared RAG appears in their RAGs list with a "Shared · Viewer/Editor" badge and your account name. Nothing is copied — they read your live knowledge base.

Managing access

The Share dialog lists everyone with access — change a person's role or revoke it at any time. Each of your RAG cards shows a "Shared: N users" count so you can see fan-out at a glance.

Grantees only ever see the knowledge base's tenant-visible documents — never any you marked restricted. Access is read-only on your live RAG — they read yours, they never get a copy of it.

Agents (assistants that act)

An agent is an assistant with a fixed persona, a knowledge scope (which RAGs it can search), and — optionally — tools that let it act (search, run a workflow, fetch a URL, send email, call a webhook) instead of only answering. Build them on the Agents page.

Start from a template

The template gallery gives you ready-made agents — Grounded Q&A, Research assistant, Support auto-responder, Data analyst, and more, plus Zapier-connected ones. Pick one and it opens in the editor prefilled with a persona and tools; just point it at a knowledge base and turn it on.

Connecting MCP servers

Beyond the built-in tools, an agent can connect to external MCP (Model Context Protocol) servers over HTTP — their actions become tools the agent can call at run time. Click Add MCP server and choose:

ParameterWhat it doesDefaultWhen to change it
Select from directoryPick from 20+ popular hosted servers (GitHub, Notion, Slack via Zapier, Linear, Stripe, HubSpot, Supabase, Firecrawl…). The name, endpoint URL, and auth hint are prefilled.——
Custom URLPaste the URL of any other MCP server (e.g. your own, or a self-hosted one).——

If a server needs authentication, paste its token in the Authorization token field (sent as a Bearer header). Hit Test to connect and list the tools it exposes — each becomes callable by the agent. A setup link on each directory entry opens that provider's own MCP docs for the current endpoint.

Emailing an agent

Each agent can be given its own email address — send it a question and it replies, grounded and cited. And every agent has a quick Run box on its card to try it without leaving the page.

Grant Send email, Call a webhook, and write-capable MCP tools deliberately — an executable agent will take those actions on its own. The built-in templates include guardrails ("state what you'll do before any write/send action") in their personas.

Accounting (practice suite for tax firms)

Hispanusa Accounting (Beta) runs an accounting & tax practice on one data plane: a client roster where every client gets their own sealed knowledge namespace, tax engagements with form-aware document checklists and statutory deadlines, firm-branded document chasing, billing with the firm's own double-entry books — and Baxter, the AI staff accountant. Find it under Accounting once the plugin is enabled.

Step by step: from an empty firm to a filed return

  1. 1

    Enable the plugin

    Modules → Hispanusa Accounting → Start free trial. The first visit creates your Tax Knowledge Library — the one RAG shared across the firm, for code sections, IRS forms and your own memos.
  2. 2

    Set up the firm

    The Firm tab holds your name, brand colour and disclosures (they appear on every client email and letter) and your preparer credentials. A PTIN is required to file — the readiness card blocks filing without one. An EFIN is tracked separately and only matters for e-file; EA / CPA / attorney is optional and drives whether you have unlimited or limited representation rights; CA, OR, MD and NY additionally require state registration. Only the last 4 of any credential is ever stored.
  3. 3

    Add clients

    Each client you create gets a sealed RAG of their own, restricted to the assigned staff plus admins. Reassigning staff re-seals the library immediately — RAG and document ACLs, chunk tokens, the BM25 index and the answer cache. One person with several businesses is modelled with relations: link the owner to each entity, and personal (1040) and business (1120/1120-S/1065) filings sit side by side.
  4. 4

    Open an engagement

    Pick the form and tax year (1040, 1120, 1120-S, 1065, 1041, 990) and the core checklist, statutory deadline and state deadline seed themselves — and the engagement letter goes out automatically with a one-click acknowledgment page. The engagement walks intake → documents → preparation → review → filed.
  5. 5

    Send the organizer

    The client answers a short secure interview — sold stock? rental? K-1s? crypto? — and each yes adds exactly the right document requests (1099-B, 8949 basis, K-1s…). Identity (SSNs, dependents) collects there too, encrypted at rest, last-4 display only.
  6. 6

    Collect VERIFIED documents

    Every arriving file — chase-page upload, email attachment, staff drop — is read and verified: the right W-2 for the right year checks itself off; a 1099 sent to the W-2 slot goes to review with the reason. Request all missing sends ONE email with one upload page for everything outstanding.
  7. 7

    Keep the books

    The client's Books card is the bookkeeping backbone: transactions from QuickBooks, Plaid or by hand, categorized by rules → Baxter → your final click; bank reconciliation to the cent; payroll runs posting to the books and seeding the 941/W-2 calendar; and the three financial statements (P&L, Balance Sheet, Cash Flow) as one branded PDF.
  8. 8

    Draft the return

    Prepare draft return reads the whole sealed library, computes with real IRS tables (capital-gains worksheet, Schedule SE, the Social Security worksheet, QBI, NIIT), fills the official Form 1040 for verification, and surfaces Baxter's optimizations — HOH election, IRA/HSA windows, missing basis — each with the dollar impact, applied only on your approval.
  9. 9

    Examine before the IRS does

    The auditor examines like a revenue agent — income matching, substantiation, basis, payroll, penalty exposure — plus the IDR an examiner would serve. Every run gets its own branded PDF, one click to email it. When a real notice lands, Respond to a notice opens the response engagement, checklist, 30-day deadline and a drafted reply.
  10. 10

    File

    Approve the reviewed draft, then Print & mail or E-file — extensions (4868/7004) can transmit electronically through the firm's own IRS-authorized provider account (always behind a confirmation); the return of record transmits through your professional software, tracked to accepted either way.
  11. 11

    Bill it — and get paid

    Track time, watch WIP by client, raise invoices under your branding — with your Stripe connected the email carries a real Pay button, and payments post into the firm's own double-entry ledger automatically. CSV journal export included.
  12. 12

    Advise

    The Advisory report computes the monthly call: cash forecast with runway, budget vs actual, cost flags, the S-corp election savings from real numbers, sales-tax nexus across all 50 states — Baxter writes the partner's note on top.
  13. 13

    Ask Baxter

    Questions are answered from that one client's documents plus your Tax Knowledge Library, cited, and never from another client's file. Pull the latest federal forms from irs.gov with IRS → Sync.
Each firm also gets its own Hispanusa email address. Until you connect your own Resend account, client mail still goes out as the firm from that address, and replies route back in and answer the open document request automatically.
Client isolation is architecture, not policy: one client = one RAG, and the ACL is enforced inside the index query (vector payload + BM25 token intersection), so retrieval cannot cross clients even when a question invites it.

Practice (clients, work, time & billing)

Hispanusa Practice is everything the firm does between winning a client and getting paid — and Mira, the AI practice manager, does the chasing. Find it under Practice once the module is on your plan.

Step by step: from a prospect to a paid invoice

  1. 1

    Set the firm up

    The first visit offers Set up my firm, which installs the built-in job templates (1040, 1120-S, 1065, 1120, monthly bookkeeping, quarterly payroll, extension, notice response, onboarding, planning) and a priced service catalogue. Everything is editable; re-running it never touches what you have changed.
  2. 2

    Track the prospect

    The Pipeline board holds opportunities with a value, a probability and an owner, and shows the weighted forecast. Winning one creates the client, the primary contact, the practice profile and the onboarding job in one step — nobody re-types a won deal.
  3. 3

    Send a proposal

    Build it from the service catalogue: prices are copied onto the proposal, so a catalogue change next month never rewrites what a client was quoted. Send it and the client signs on a public page; signing opens the engagement, creates the jobs and starts any recurring arrangement.
  4. 4

    Run the work

    A job is one piece of work for one client. Created from a template it arrives fully scheduled: tasks in order, each with a dependency, an estimate, an assignee and a date derived from the job's deadline. A task whose dependency is still open cannot be completed — that gate is the difference between a checklist and a workflow.
  5. 5

    Ask for what is missing

    A job seeds its document request automatically. One email, one upload page, and the item ticks itself off when the file lands — the upload goes straight into the client's sealed library through the normal ingest pipeline.
  6. 6

    Let Mira chase

    Reminders follow each request's own cadence, are capped, escalate to a partner at the end, and stop the moment the last file arrives. Preview exactly what would go out before anything does, under Client portal → Preview the chase.
  7. 7

    Record time

    One timer per person — starting a second one stops the first. Time lands in the firm's single time ledger, valued at the rate in force when it was recorded (client rate beats staff rate beats firm default).
  8. 8

    Bill it

    WIP is shown aged, because a total tells you what you earned and the aging tells you what you are about to lose. Bill unbilled time — grouped by who did it, so the client sees professional services, not a transcript — or write it off with a reason.
  9. 9

    Hold client money properly

    Retainers sit in a trust ledger with a running balance. Applying a retainer to an invoice reduces the balance and pays the invoice in one movement; you cannot apply more than the client has on deposit.
  10. 10

    Read the numbers

    Capacity compares remaining estimate against each person's declared weekly capacity — the only comparison that answers “can we take this on?”. Realization is billed ÷ (billed + written off + still unbilled), so a firm that bills late sees a cash problem rather than a flattering rate.
Mira's morning brief leads with the single most urgent thing and names the client, the job and the date. The figures behind it are computed first and narrated second — if the model is unavailable, the numbers still stand.
Practice does not keep its own client table. It hangs off the Accounting client record, so the sealed document namespace, the engagements and the tax identity are the same ones — there is nothing to reconcile.

The client portal

The portal is where a client sees what you need, uploads it, signs, messages you and pays — under your name, on your domain.

  1. 1

    Invite someone

    From a client's People tab, any contact with an email can be given portal access. They set their own password from the invitation; a re-invite never resets an existing one.
  2. 2

    It is its own identity realm

    A portal person is not a console user: different table, different cookie, different signing context, scoped to exactly one client. A portal cookie presented to the staff console resolves to nobody, and the reverse is equally true.
  3. 3

    Uploads land sealed

    Files go through the ordinary ingest pipeline carrying the client's restricted ACL, so they are retrievable by the staff assigned to that client and by nobody else — including any other client of the same firm.
  4. 4

    Signatures carry evidence

    The typed name is stored with the address and agent it came from, next to a hash of exactly what was on screen. Without that hash a signature proves only that somebody clicked a button.
Emailed request and signature links work without a sign-in: the token in the URL is the credential, so those pages reveal only what their holder already knows.

White label (running as another firm)

One engine, many firms over the door. A brand is a firm the platform serves under its own name: its domain, its logo, its colour, its legal footer, its price card.

  1. 1

    How a request is resolved

    By hostname, before any handler runs. A request arriving on a partner's console domain is served as that firm — the console renders in their colours, letters are signed in their name, and emails come from their address. An unknown hostname falls back to the house brand rather than failing.
  2. 2

    Your own look

    Under Brand a firm sets its name, logo, colours, contact details and legal footer, and claims its domains. A firm may change how it looks and never what it is entitled to — plan, modules, seats and fees are the operator's and are rejected here even if they are sent.
  3. 3

    What a plan grants

    A plan is a set of modules (knowledge, accounting, practice, Hispanusa) plus seat and client limits and a negotiated filing fee. Module grants and the paywall are kept as two views of one fact, so they cannot drift.
  4. 4

    The money

    A filer pays the platform; the platform keeps the filing fee and remits the balance to the firm. Both lines are written to the brand ledger, so a statement is a query — and a return the firm prices free costs the firm nothing either.
Every outgoing email is wrapped in the serving brand's shell. That is what makes white label real: the platform's name is not in the template, the brand's is.

Adding content

Uploading files

Drag files onto the Documents tab or use the picker. Supported out of the box: PDF (including scanned — OCR runs automatically), Office (Word/Excel/PowerPoint), Markdown, HTML, CSV, images (captioned by the vision model), and audio (transcribed by speech-to-text). Video via the YouTube connector becomes a transcript.

Connected sources

Instead of one-off uploads, connect a source that stays in sync — changes at the source are picked up automatically on a schedule. Click Add source on the Documents tab. Available connectors:

Local folderWebsite crawlS3 / MinIOAzure BlobGoogle Cloud StorageGit repositoryGitHubGitLabSQL databaseMongoDBElasticsearchConfluenceJiraNotionSharePointSlackZendeskBoxDropboxGoogle DriveRSS / AtomIMAP emailSFTPYouTube (video → transcript)

A folder on your own computer

Every source above is pulled: Hispanusa reaches out and reads it. A folder on your Mac, your PC, or a drive plugged into one can't work that way — a hosted Hispanusa has no route into your machine, and giving it one would be a worse idea than the problem it solves. So that folder is pushed instead.

Add the source Local folder (your computer), then run the sync agent on the machine that has the files. The card shows the exact command with the ids already filled in:

pip install hispanusa
hispanusa sync ~/Documents/contracts \
  --url https://hispanusa.com --rag <rag-id> --source <source-id> \
  --key $HISPANUSA_API_KEY --watch

It compares what you have against what the RAG already holds and uploads only what changed — an untouched file is never opened, never sent, never re-embedded, so a 100,000-file folder with three edits transfers three files. --watch repeats that on an interval, which is how the folder stays in step. Add --delete to propagate removals, --include/--exclude to filter by glob. Junk (.DS_Store, node_modules, lock files) is skipped, and symlinks are never followed — a link pointing out of the folder is not part of the folder.

The agent talks to a URL with an API key, so it works from a laptop to the hosted service or to your own server. Nothing runs as a background service unless you choose to run it that way — it's an ordinary command you can stop with Ctrl-C.

How sync scales

Sync is built for very large repositories. Each run streams items one at a time (never loading the whole list into memory), skips anything unchanged via a cheap version token without re-downloading it, and processes a bounded batch of new/changed documents per run — resuming on the next run. A first backfill of millions of files is done safely in batches; deletes are only applied after a complete pass so an interrupted run never prunes its unseen tail.

Web-crawled sources can pull in page chrome (menus, cookie banners). If retrieval or generated eval questions look "off," check the Documents tab — clean article content gives far better answers than boilerplate.

Asking questions

Answers with citations

Every answer carries numbered citations. Click one to open the source document with the exact cited passage highlighted — so you can always verify a claim at the source. If the documents don't cover the question, the platform says so rather than guessing (see grounding).

Conversations

Follow-up questions understand context: "and what about the second one?" is automatically rewritten into a standalone query using the prior turns before retrieval, so the thread stays coherent.

Metadata filters

Restrict an answer to a subset of documents — by type, source connector, filename, or a date range — using a filters object on the query. For example, "answer only from documents updated this year" or "only from the HR SharePoint." Filters compose with access control and are enforced inside the search, not after it.

Traces

The Traces tab shows, for each past question: the rewritten query, every candidate chunk with its dense/sparse/reranked scores, what was fed to the model, grounding signals, and latency breakdown. It's the "show your work" view for debugging retrieval.

Retrieval & quality

Hybrid search

Two retrievers run for every question and their rankings are fused, so you get both meaning and exact-term matches:

QuestionDense (meaning)embeddings · semanticSparse (keywords)BM25 · exact termsRRF fuse+ optional rerank

Dense finds passages that mean the same thing even with different words; sparse (BM25) nails exact keywords, codes, and names. RRF (reciprocal-rank fusion) blends the two rankings; an optional reranker then re-orders the top candidates with a more precise model.

Grounding modes

How strictly answers must stick to your documents:

Strict
Refuses unless the docs clearly answer
Balanced
Answers from docs; hedges when thin
Default
Follows the deployment setting
Open
May use general knowledge to fill gaps

Turn on Fact-check answers to have each answer scored for support from its sources and flagged when confidence is low (one extra model call). This is your defense against hallucination.

Query understanding

ParameterWhat it doesDefaultWhen to change it
Query expansionGenerates paraphrases / hypothetical answers (HyDE) and retrieves for each, widening recall.offRecall is low — good answers exist but aren't retrieved.
Multi-hopAgentic follow-up retrievals for questions that need chaining facts.offQuestions span multiple documents / reasoning steps.
Semantic cacheServes an instant answer when a near-identical question was asked recently.offHigh-traffic RAGs with repetitive questions.

Settings reference

Deployment-wide provider settings live on the Settings page (managed by the operator on hosted plans). Per-RAG behavior lives on each RAG's Settings tab. Here is every parameter that matters.

Answering model

ParameterWhat it doesDefaultWhen to change it
LLM chainOrdered list of models tried for each answer; falls back down the chain, ending in an extractive (no-LLM) answer.managed, extractiveBring your own model or add a fallback.
TemperatureRandomness of the answer. Lower = more deterministic and faithful.0.2Raise for creative tasks; keep low for factual QA.
Top-p / SeedNucleus sampling cutoff and a fixed seed for reproducible answers.1.0 / 0Need repeatable outputs (audits, tests).
Max tokensCeiling on answer length.model default—
System promptExtra instruction prepended to every answer for this deployment.empty—

Embeddings & vector store

ParameterWhat it doesDefaultWhen to change it
EmbedderModel that turns text into vectors. Its dimension must match the vector index.managed (768-d)Switching requires a re-index of every RAG.
Vector dimensionLength of each embedding vector; pinned to the embedder.768—
Vector storeWhere vectors are stored/searched: pgvector, Qdrant, Milvus, Weaviate, Pinecone, or in-memory.pgvector—
QuantizationCompresses vectors (int8/binary) with a two-phase rescore to cut memory at scale.offTens of millions of vectors.

Chunking

How documents are split. Smaller chunks pinpoint precise facts; larger chunks carry more context per hit. Presets: Auto (~450 tokens), Precise (~250), Broad (~800), By paragraph, By page.

ParameterWhat it doesDefaultWhen to change it
Chunk sizeTarget tokens per chunk.~450Precise for dense reference docs; broad for narrative.
OverlapTokens shared between adjacent chunks so facts aren't split at a boundary.~60—
Parent chunkSmall-to-big: retrieve a small chunk, feed the model its larger parent for context.on—

Retrieval knobs

ParameterWhat it doesDefaultWhen to change it
top_kHow many chunks are passed to the model as context.settingsRaise for thorough answers; lower for speed/precision.
CandidatesHow many chunks each retriever fetches before fusion/rerank.settingsRaise to improve recall at some latency cost.
RRF kFusion constant balancing the two retrievers.60—
RerankerSecond-pass model: cross-encoder (local), a TEI endpoint, or the built-in LLM reranker.off—

Governance & privacy (per-RAG)

ParameterWhat it doesDefaultWhen to change it
Redact PIIMasks emails, phones, SSNs, card numbers before indexing.off—
Store queriesKeep question text in analytics, or hash it and keep only metrics.on—
RetentionAuto-delete documents/queries older than N days.off—

Evaluation

Turn answer quality into a tracked number. The Eval tab holds a golden set — questions with expected answers — that you run against the live stack to measure quality and catch regressions.

Building a golden set — three ways

  1. 1

    Generate from content

    One click: the answering model reads a spread of your own chunks and writes realistic questions + expected keywords, grounded in your corpus. The fastest way to a golden set for any RAG.
  2. 2

    Seed demo set

    Loads a bundled sample set (only useful if your RAG happens to contain the demo's files).
  3. 3

    Add manually

    Type a question, an expected source file, and keywords a correct answer must contain.

Running & metrics

ParameterWhat it doesDefaultWhen to change it
Hit rateShare of questions where the right source was retrieved.——
MRRMean reciprocal rank — how high the right source ranked.——
Answer accuracyWhether the answer contains the expected facts. With semantic scoring, an LLM judges meaning so "16 weeks" = "sixteen weeks."——

Every run is saved, so Quality over time charts your hit-rate, MRR, and accuracy across runs — flip a setting, re-run, and see whether it actually helped.

Governance & security

Document access control

Every document has an ACL. By default everyone in the workspace can retrieve it; restrict a document and only named users/roles (plus admins) can. Access is enforced inside the search — a user whose tokens don't match never sees the document in any answer, not just hidden from a list. Set it on a document's Access tab.

Data lifecycle

ParameterWhat it doesDefaultWhen to change it
RetentionAuto-purge documents and query logs older than a set age.——
Right to be forgottenDelete every trace of a subject on request (RTBF).——
Output moderationScreen generated answers against policy before they're returned.——
PII redactionMask sensitive identifiers at ingestion time.——

Identity & audit

SSO via OIDC signs users in and maps groups → roles. SCIM 2.0 auto-provisions users and groups from your IdP. Every sensitive action is written to an audit trail you can export as JSONL/CSV or stream to a SIEM. Per-key rate limiting caps request rates.

Secrets at rest

Provider and API keys are encrypted at rest (AES via Fernet) — never stored in plaintext. The app decrypts them only in memory when needed.

Roles: reader (ask), editor (add/manage content), admin (manage the workspace). Self-service signups start as editors of their own isolated workspace.

Using API keys

An API key lets code, scripts, and other tools talk to your workspace without a browser login. Anything you can do in the app — ask questions, retrieve passages, upload documents, run workflows — you can do over the API by presenting a key. Each key carries a role (what it's allowed to do) and an optional expiry.

1 · Create a key

  1. 1

    Open Governance → API keys

    Go to Governance, then New key. (Creating keys needs an admin key — switch keys from the key icon in the top bar if the page is locked.)
  2. 2

    Name it, pick a role & expiry

    Name it after who or what will use it (ci-bot, support-widget), choose the least-privileged role that still works, and optionally set an expiry so it auto-disables.
  3. 3

    Copy the secret now

    The full secret (it starts with hispanusa_) is shown once, right after you click Create. Copy it straight into your secrets manager — it can't be retrieved later.
Treat the key like a password. It grants its role to anyone who holds it. Never commit it to git or paste it into client-side/browser code. If it leaks, disable or rotate it on Governance immediately — both take effect at once.

2 · Send it on every request

Put the key in an X-API-Key header on every call to /api/…. Your base URL is your workspace address — for you that's https://your-workspace.example.com.

the header every request needs
X-API-Key: hispanusa_xxxxxxxxxxxxxxxxxxxxxxxx

3 · Ask a question (full answer + citations)

The /query endpoint runs the whole pipeline and returns a grounded answer with citations. You need the RAG id — find it on the knowledge base's Connect tab, or in its URL (/rags/<id>).

bash — POST a question, get an answer
curl -s "https://your-workspace.example.com/api/rags/<RAG_ID>/query?stream=false" \
  -H "X-API-Key: hispanusa_xxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"question": "What does the vacation policy say?"}'

# → {"answer": "... [1]", "citations": [...], "retrieved": [...]}

4 · Or retrieve passages only (bring your own LLM)

Use /search when your app already has its own model and prompt and just wants Hispanusa's ranked, access-controlled passages back.

bash — ranked, ACL-filtered chunks
curl -s "https://your-workspace.example.com/api/rags/<RAG_ID>/search" \
  -H "X-API-Key: hispanusa_xxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"question": "vacation policy", "top_k": 8}'

# → [{"text": "...", "filename": "...", "score": 0.92}, ...]

From your language, not curl

Every knowledge base's Connect tab generates copy-paste snippets — Python & TypeScript SDKs, LangChain/LlamaIndex, and MCP — pre-filled with a key and the right URL. It also exposes an OpenAI-compatible endpoint, so you can point any OpenAI SDK at https://your-workspace.example.com/v1 with your key as the api_key and treat the RAG like a chat model. See Connect & API.

What each role can do

ParameterWhat it doesDefaultWhen to change it
readerAsk and search only (/query, /search). The safe default for anything that just reads answers.—Public-facing widgets, dashboards, read-only bots.
editorEverything a reader can, plus create RAGs, upload/manage documents, and run workflows.—Ingestion pipelines, automation scripts.
adminEverything, including managing keys and reading the audit trail.—Rarely — never ship an admin key inside an app.
Keys are workspace-scoped: a key only ever sees its own tenant's knowledge bases and data, and every call it makes is attributed to it in the audit trail.

Expiry, rotation & revoking

ParameterWhat it doesDefaultWhen to change it
ExpirySet at creation; the key stops working automatically at that date. Create a replacement before it lapses.—Contractors, time-boxed integrations.
RotateIssues a fresh secret for the same key — same name and role — and the old secret stops working instantly.—Suspected leak, or routine credential rotation.
DisableKills the key immediately and permanently.—Offboarding, decommissioning an integration.
Streaming endpoints read by a browser EventSource (which can't set headers) also accept the key as a ?key=hispanusa_… query parameter. Prefer the header everywhere else. Note: workflow webhooks don't use these keys — each workflow has its own secret URL (see the Workflows help).

Connect & API

Use a RAG from outside the app — the Connect tab of any RAG has copy-paste configs.

Ways to connect

ParameterWhat it doesDefaultWhen to change it
MCP serverExposes your RAGs as tools to any MCP client (Claude Desktop, IDEs). One config, all platforms.——
OpenAI-compatiblePoint any OpenAI SDK at the RAG as if it were a chat model — drop-in for existing apps.——
REST API/search (retrieval only) and /query (answer + citations), both accepting metadata filters.——
SDKsOfficial Python and TypeScript clients.——
WebhooksGet notified on ingestion and usage events.——
Every one of these authenticates with an API key from Governance — see Using API keys for the header, roles, and worked examples.

Operator console

The Operator console is visible only to the single platform admin — the person who runs the deployment. Regular users and tenant admins never see it.

It's the control plane for a hosted deployment, with four tabs:

ParameterWhat it doesDefaultWhen to change it
OverviewBusiness dashboard — MRR/ARR, subscribers, users, storage, AI usage, 14-day trends, top tenants.——
ConfigurationConfigure the managed models offered as Hispanusa LLM/Embed/Vision, email (Resend), Stripe, and plan pricing.——
UsersEvery registered user with plan and storage use; change plan, suspend, or delete an account.——
ActivityRecent ingestion failures across all tenants, each with a plain-English cause and suggested fix.——

Managed models

Offer hosted models to paying tenants under branded names (Hispanusa LLM / Embed / Vision). Tenants pick them without configuring anything — or bring their own keys. Each has a Test button that runs a real request to confirm it works.

Plans & billing

Storage-based plans with a free trial, priced per GB per month, charged through Stripe Checkout. New signups get the managed models by default during their trial.

Monitoring & scale

Live dashboard

The Dashboard shows the ingestion pipeline animating in real time, provider health, document/chunk/query counts, latency percentiles, and cost/token usage.

Prometheus metrics

A /metrics endpoint exposes uptime, tenants, users, RAGs, storage bytes, documents-by-status, jobs-by-status, queries, tokens, and latency percentiles in Prometheus format — scrape it into Grafana. Gate it with a token on public deployments.

Scaling out

For large fleets, a distributed executor (Redis Streams) lets multiple machines drain one shared ingestion backlog, and sharded BM25 spreads the keyword index. The documents list is paginated and filterable so it stays fast at millions of rows.

Troubleshooting

Common issues and what to do. Ingestion failures also appear (for the operator) on the Activity tab, each with a suggested fix.

ParameterWhat it doesDefaultWhen to change it
Dimension mismatch"expected N dimensions" — the embedder changed after the index was built.—Re-index the RAG (Settings → Re-index).
Provider 401 / unauthorizedThe model rejected the credentials.—Re-enter the API key in Settings and use Test; for Ollama cloud models, sign the server in.
Model timeoutA cold or overloaded local model didn't respond in time.—Keep models resident; retry. Reduce worker concurrency on small boxes.
Nothing indexedA document is ready but has 0 chunks — usually empty/unsupported or a scan needing OCR.—Re-upload a clean copy or enable vision/OCR.
Answer says it doesn't knowGrounding is strict and the docs don't cover the question.—Add relevant docs, or loosen grounding / widen retrieval.
Still stuck? The Traces tab shows exactly what was retrieved for a question — the fastest way to see why an answer was what it was.