跳到主要内容

Knowledge Banks

A Knowledge Bank is a searchable library of documents you load and manage yourself — PDFs, Office and HTML files, images, audio, video and text. You ingest content once, Hindsight splits it into passages and embeds them, and you search across every format from a single query.

Knowledge Banks are a different kind of bank from Memory Banks:

Memory BankKnowledge Bank
What it holdsAn agent's evolving memory — facts it has learnedStatic reference content you upload
How it changesRetain / recall / reflect; the agent writes itYou ingest and delete documents
How you read itRecall and reflectSemantic search over passages
ContentText facts and mental modelsMultimodal: documents, images, audio, video, text

A knowledge bank never reasons or rewrites what you put in it. It stores your documents and returns the passages that best match a query.

Accessing Knowledge Banks​

  1. Log in to Hindsight Cloud.
  2. Open the bank selector in the top navigation and set the bank type to Knowledge banks.
  3. Select a bank, or choose Create to make a new one. A bank id is unique across both memory and knowledge banks.

Bank views​

Selecting a knowledge bank opens it with a sidebar of five views:

Bank Activity​

The bank's overview: document and passage counts, a breakdown by media type, an activity chart of what was added over time, the most recently updated documents, and the bank's background ingest operations.

Documents​

Every document in the bank, in a list, grid, or constellation view (the constellation plots documents and their passages as an explorable map). Filter by media type, ingest status (pending, processing, ready, failed), tags, or a name search. Open a document to see its metadata and all of its passages, each with its text, page or time window, and a media preview.

A single search box that takes text, an image, and a short video clip in any combination — Hindsight embeds them together as one query and returns the best passages across every media type, ranked best-first. See Searching below.

Sources​

The buckets the bank syncs from, each with its schedule, status, and run history. See Syncing from a bucket below.

Configuration​

Two tabs:

  • General — the bank's identity: its id and creation date.
  • Configuration — how the bank splits content into passages (see Passage settings below).

Creating, deleting, and changing a bank's configuration is limited to organization owners and admins. Members can browse, search, and read any bank.

Ingesting documents​

You add content two ways.

  • Text — send Markdown or plain text directly. Good for notes, transcripts, and generated content.
  • Files — upload PDFs, Office and HTML documents, images, audio, and video. Each file becomes one document and is chunked into passages in the background.

Every document can carry tags, and an optional document id: ingesting the same id again replaces that document in place. Documents move through pending → processing → ready (or failed), which you can watch on the Bank Activity and Documents views.

Supported media​

TypeFormats
documentPDF, Word, PowerPoint, Excel, HTML, EPUB
imagePNG, JPG, WebP, GIF, BMP, TIFF, HEIC
audioMP3, WAV, M4A, AAC, FLAC, OGG, Opus, WMA
videoMP4, MOV, MKV, WebM, AVI, M4V, MPEG
textMarkdown, plain text, JSON, CSV, YAML, XML

Syncing from a bucket​

Instead of uploading files yourself, you can point a knowledge bank at an object-storage bucket. A source lists the bucket on a schedule, ingests every new or changed object as a file, and deletes documents whose objects are gone from the bucket. Amazon S3 and S3-compatible stores (MinIO, Cloudflare R2, …) are supported.

Enterprise feature

Sources is available on Enterprise plans. If the bank's Sources view shows a locked panel, book a call or contact your Hindsight representative to enable it for your organization.

To add one, open the bank's Sources view and choose Add source:

  • Bucket, Region, and an optional Prefix — only objects under the prefix are synced. For S3-compatible stores, set a Custom endpoint (a public https:// address).
  • Access key ID / Secret access key — a read-only identity that can list the bucket and read objects under the prefix. Hindsight never writes to your bucket. The secret is encrypted at rest and never shown again.
  • Schedule — every 15 minutes, hourly (the default), every 6 hours, daily, weekly, or a custom cron expression in UTC.

Test connection lists the first few objects so you can check the credentials and prefix before saving. Sync now runs a source outside its schedule. Only organization owners and admins can add, edit, sync, or delete sources.

On each run:

  • Every object is sent to the bank as a file and read the same way as an upload, using the bank's passage settings. Objects that are not ingested — an unsupported type, a file over 25 MB, or one over the bank's own size limit — are listed in the run as skipped, with the reason.
  • Documents get the id s3://<bucket>/<key> and the tag source:<source id>, so you can filter on them in Documents and Search. A source-etag: tag records the object's version, so unchanged objects are not ingested again.
  • A sweep that would delete more than 20% of the source's documents, or that finds the bucket empty, is refused and the source is paused until you re-enable it. This guards against a prefix typo or a narrowed IAM policy wiping the bank.
  • When a source is paused (bad credentials, a deleted bank, or a refused delete), the organization owner and billing contact are emailed and organization webhooks receive a source.paused event.

Deleting a source stops the sync but keeps the documents it ingested. Documents you delete by hand are ingested again on the next run if the object is still in the bucket.

Searching​

Search runs over the bank's passages and returns the ones that best answer the query, best-first.

  • Multimodal query — combine query (text), query_image, and query_video. They are embedded as a single query, so a picture can find a page and a sentence can find a video frame.
  • Budget — low, mid (default), or high trades ranking depth for speed.
  • Token budget — max_tokens caps how much is returned; results are filled best-first until the budget is spent.
  • Re-ranking — optional. A reranker re-orders the top hits for relevance, reading page images as well as text. It's off by default: turn on Re-rank results in the Search view, or set "enable_reranking": true in the request. A re-ranked search costs more than a plain one; see Billing.
  • Tag filters — narrow to documents by tag. Match any of the tags (OR) or all of them (AND); the strict variants (any_strict, all_strict) match the same way but exclude untagged documents, and exact keeps only documents whose tag set equals the filter. The API also accepts a compound tag_groups boolean filter.
  • Media-type filters — restrict results to specific media types.

Each result is a passage with its source document, text (where it has any), page or time window, and a URL to stream the underlying media (a page image, an audio clip, a video segment).

Passage settings​

The Configuration view's Configuration tab tunes how content is broken into passages. Settings are per-bank and fall back to the server defaults:

  • Text — tokens per text passage.
  • PDF — the resolution each page is rendered at, and a page cap.
  • Images — the detail each image is read at, in tokens.
  • Media — the window length and overlap used to chunk audio and video.
  • Types — turn individual media types on or off for the bank.

Reset returns the bank to the server defaults.

Linking to a memory bank​

A memory bank can read one or more knowledge banks during reflect. Open the memory bank's Bank Configuration, find Linked Knowledge Banks, and add the banks you want it to consult. On reflect, the memory bank also searches its linked knowledge banks and folds the matching documents into its answer. Recall and mental models do not read linked knowledge banks.

Billing​

Knowledge banks are metered on three things: ingest (per content token of the documents you load), search (per query, with a higher rate for a search that re-ranks its results), and storage (per content token held, per month). See Billing for the rates and how each is counted.

Content synced from a source is billed the same way as uploads. A sync needs credits to ingest: with none, the run fails with "Insufficient credits" and the next run picks up once credits are added. Sync usage appears on the Usage page under the source's name.

For developers​

Knowledge banks are fully available over the API under /v1/default/knowledge-banks:

MethodPathPurpose
POST/Create a knowledge bank
GET/List knowledge banks
POST/{bank_id}/ingestIngest text documents
POST/{bank_id}/files/ingestIngest files (multipart)
GET/{bank_id}/documentsList documents
POST/{bank_id}/searchSearch the bank
GET/{bank_id}/config · PATCH · DELETERead, override, or reset the ingest settings

Ingest text with:

curl -X POST https://<your-host>/v1/default/knowledge-banks/my-docs/ingest \
-H "Authorization: Bearer $HINDSIGHT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"items": [
{ "document_id": "onboarding", "text": "# Onboarding\n…", "tags": ["guide"] }
],
"async": false
}'

Search with:

curl -X POST https://<your-host>/v1/default/knowledge-banks/my-docs/search \
-H "Authorization: Bearer $HINDSIGHT_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "query": "how do I reset my password?", "budget": "mid", "max_tokens": 4096 }'