Skip to content
Setu সেতু Docs
Englishবাংলা中文

Getting started

  • What is Setu
  • Roles and sign-in
  • Creating your account
  • Simulated sandbox
  • Two-minute tour

Buyer guide

  • Buyer verification requirements
  • The dashboard
  • Creating an order
  • Deal detail and milestones
  • Funding the escrow
  • Releasing payments and approvals
  • Cash flow, alerts and what-if
  • Financing comparison and applying
  • Order analysis
  • Landed cost calculator, monthly summary and supplier scorecard
  • Documents and the hidden-text reveal
  • Suppliers and KYB badges
  • USD vs CNY payment and FX rate lock
  • Chat assistant
  • Check a suspicious email
  • Credit records and signed receipts
  • Settings, language and team members

Supplier guide

  • Supplier verification requirements (中文)
  • Supplier portal overview
  • Confirm the payment milestones
  • Upload documents
  • Payments received
  • Change your payout account
  • Why a document needs attention
  • Your company team

Admin guide

  • Admin console overview
  • Audit log and chain verification
  • Exporting the operation log
  • Risk decisions and policy
  • Document registry and duplicate detection
  • Privacy dashboard
  • Security and injection events
  • Admin: reviewing verifications
  • Knowledge base re-index
  • Evaluation harness and results
  • Demo sandboxes and reset

Judge guide

  • Five-minute guide
  • Guided demo
  • Playgrounds and scam simulator
  • Verify the audit log
  • How each requirement is met

Security & trust

  • Why code decides, not the AI
  • Permission tiers 0 to 3
  • Privacy masking
  • Documents and emails are data, not instructions
  • The signed, hash-chained audit log
  • What is simulated and what is real
  • Why Setu asks for these details

FAQ

  • Frequently asked questions

Glossary

  • Glossary

Loading…

  1. Documentation
  2. ›
  3. Admin guide
  4. ›
  5. Knowledge base re-index

Knowledge base re-index

How the AI knowledge base is refreshed. It is a command-line task, not a web page.

AdminLast updated 2026-10-20Download as PDF

What it is

The knowledge base (KB) holds the short guides the chat assistant searches: for example Incoterms, financing terms and trade document fields. Indexing splits the guides into chunks and stores their embeddings (numeric fingerprints of meaning) in the database for search.

Who uses it

Admin Whoever runs the server. You need command-line access to the project.

When to use it

  • After you edit a file in rag_agent/kb/sources/.
  • After the financing catalogue changes and you want the KB to reflect it.

Step by step

  1. Sync the financing catalogue

    Run pnpm kb:sync (or make kb-sync). It writes the current financing catalogue as a generated source file under rag_agent/kb/sources/generated, or reports "unchanged".

    No web screen exists for this task.
  2. Index the sources

    Run pnpm kb:index (or make kb-index). The command prints a summary such as sources, chunks, and how many were embedded, unchanged or removed.

    The summary is printed in the terminal.

What the results mean

OutputMeaning
+N embeddedNew or changed chunks were embedded.
N unchangedChunks that did not change were kept.
-N removedChunks whose source text is gone were deleted.

Indexing is idempotent: running it twice gives the same result.

Tips and common mistakes

  • If the embedding model is not available, the command stops with "embedding model unavailable; cannot index".
  • The knowledge base is data. Instructions inside KB text are never obeyed by the assistant.
  • Chat answers cite numbers from code tools, not from the KB.

Related security notes

Security

KB passages are wrapped as untrusted content before the model sees them. See Security events.

Related pages

  • Admin console overview
← PreviousAdmin: reviewing verificationsNext →Evaluation harness and results

Was this page helpful?

← Documentation

On this page

  • What it is
  • Who uses it
  • When to use it
  • Step by step
  • What the results mean
  • Tips and common mistakes
  • Related security notes
  • Related pages