Documentation menu

Docs Knowledge

Knowledge embedding models

An embedding model turns text into numbers so Verbiqo can find the sections that match a question by meaning. By default it runs on your computer and you do nothing. This page is for the case where a source must be searched with another model, usually one your organization hosts.

Two models, two jobs

Embedding modelAnswer model
JobFinds the sections of a source that match a question.Writes the answer from those sections.
Chosen inSettings › Extensions › Knowledge › Embeddings, or verbiqo knowledge embedding.Settings › AI service. Choose and check a model
DefaultThe built-in model, on your computer.The service you set up.
ReceivesWith the built-in model: nothing leaves your computer. With an organization service: the text of sections while a source is built, and each question when it is searched.The retrieved sections and your question, when you ask.

Choosing one never changes the other. The embedding model is not the AI model that writes the answer, and an embedding service is not asked to answer anything.

The built-in model

  • BGE-small, English, version 1.5 (quantized), 384 dimensions, run on this computer with the ONNX runtime. It reads at most 512 tokens of a text, so sections are cut to fit, and no section is silently truncated.
  • It needs no key, no address and no installation. No document text and no question leaves your computer for embedding. The runtime’s own usage reporting is turned off in every build.
  • It is trained on English text. Documentation in other languages is found less reliably.
  • It is loaded the first time a source is built or searched, not when Verbiqo starts.
  • It needs a platform with a runtime: Mac with Apple silicon, and Windows 10 or 11 (64-bit). There is no runtime for an Intel Mac. Platform status
  • The Prometheus semantic index can use the same model. That is a separate choice under Extensions › Prometheus. Built-in model

A source keeps its model

The vectors of a source can only be compared with a question embedded by the same model. So each source records its model, its revision and its dimensions when it is made, and is searched only with that.

  • The default is for new sources only. Under Default for new sources you choose the built-in model or an organization service. Saving that choice changes no source that already exists.
  • At creation you can choose for one source: --embedding default (the saved default), --embedding bundled (the built-in model) or --embedding remote (the organization service).
verbiqo knowledge add handbook --folder ./policies --embedding bundled
verbiqo knowledge add example-guide --url https://docs.example.com/guide/ --embedding remote
  • A model is never swapped silently. Adding documents to a source made with another model is refused. A bundle made with another model is refused. A website refresh against a source of another model stops before it fetches anything. Each message says what to do: add the source again, or rebuild it. Rebuild
  • A source made with an organization model is never searched with the built-in model instead, not even when the service is switched off or unreachable. It is not searched, and says why.
  • verbiqo knowledge status NAME shows which model a source was made with and whether this app can search it.

Sources with different models in one conversation

Sources made with different models can be attached together (/knowledge a b). Each source is searched with its own model, and each lookup is reported under that source’s name. If one source cannot be searched (its service is down, its key is missing or it is not yet ready), the lookup says The documentation could not be searched with the reason, and the other sources are still used. A source made with an organization service is asked to embed a given text once per question, however many versions and lookups use it.

With an organization-model source attached, your question is sent to that service. The built-in model sends nothing.

An organization-hosted model

An organization can host an embedding model of its own: any service that answers OpenAI-style /v1/embeddings requests. Nothing changes until someone configures it. An install that does not, and every existing source, behaves exactly as before. The names below (embeddings.example.internal, org/model-x) are placeholders.

Set up in the Mac app

  1. Open the Embeddings block

    Settings › Extensions › Knowledge. The Embeddings block is above the list of sources.

  2. Choose Organization service

    Under Default for new sources.

  3. Fill in the service

    Address (the full https URL of the embeddings route), Deployment name (what the service expects as model), Model, Revision (a commit or release that never moves; a floating name such as latest is refused), Dimensions, Encoding and Token limit. Type the Key once. It goes to the Keychain and is never shown again (“Saved. Type to replace.”). Under Advanced, Input check says how Verbiqo knows a text fits the model, and the batch size, concurrency, timeout, requests a minute and longest wait. Documents are not indexed with a model whose input limit cannot be checked.

  4. Save

    Save writes the configuration and sends nothing, to any address.

  5. Test

    Test sends the built-in sample sentences (three statements and one question) and nothing from your documents or questions. Read the result.

  6. Move a source onto the service (optional)

    Select it and press Rebuild with this profile…. A sheet shows the destination, the expected work and the rollback, and asks you to confirm. Rebuild

The Windows panel has the same block with the same wording. It has not been run on a real Windows computer.

Set up in a terminal

verbiqo knowledge embedding set --mode remote \
  --endpoint https://embeddings.example.internal/v1/embeddings \
  --deployment embed --model org/model-x --revision REVISION --dimensions 1024 \
  --input-contract overflow-rejection --key-stdin
verbiqo knowledge embedding show
verbiqo knowledge embedding test

Replace REVISION with the pinned revision. A key is read from standard input (--key-stdin) or from a variable (--key-env NAME) and kept in the Keychain or Credential Manager. --key VALUE is refused, because a key on a command line is visible to other programs. Without a secure store, set VERBIQO_KNOWLEDGE_EMBEDDING_API_KEY for the one process; it is used before a saved key. --clear-key removes the saved key.

Save, Test and Rebuild

ActionWhat it sendsWhat it changes
Save (embedding set)Nothing.The saved default for new sources, and the key in the secure store. No source, registry entry or index is touched.
Test (embedding test)The built-in sample sentences only.Nothing.
Measure (knowledge measure NAME)Questions made from the source’s own headings, and built-in unrelated questions.The thresholds recorded on that source.
Rebuild (knowledge rebuild NAME)The text of every section, to the service, after you confirm.A separate new index, switched in only when it is built, checked, validated for searching and compared.

Reading a Test result

A service that answers is not a validated service. Test reports five parts and never merges them into one pass.

PartWhat it says
Service connectivityThe service is reachable and the key was accepted.
Model and revisionDeclared by your administrator. The service cannot prove them.
Input limitHow Verbiqo knows a text fits. A checkable one is needed to index.
Drift alarmThe sample sentences compared with the reference stored when a source was built. A change is flagged.
Retrieval policyOne line per decision that turns a similarity into an action, below.

Three decisions are required: relevanceFloor, nameFloor and meaningMargin. Without all three validated on the service, sources made with the model are not searched, and the reason is shown. Three are optional (applicability, preread, followUpDefault): without a validated value that decision is off.

State shownMeaning
validated on serviceMeasured on the service and confirmed on questions held back from the choice.
measured on mock only (not valid for production)A record from a test double. It never makes a source searchable.
inconclusive on held-out setMeasured, and the held-back questions did not confirm a value, or there were too few. Nothing is recorded.
not measuredNothing was measured.

A value measured on a test double is never counted. No button, setting or flag records a value without a measurement. --accept-quality-regression accepts a worse retrieval comparison only; it never makes an unvalidated policy searchable.

Is a source ready to be searched?

verbiqo knowledge test NAME (or Test on a source) judges a source against the model it was made with. Each line is separate, with its reason:

LineWhat it says
Embedding profileThe profile recorded in the source is recognized.
Index matches its profileThe fingerprint, model name, dimensions and stored vector length agree with that profile. An altered profile or an index of another fingerprint or dimension is a failure.
MeasurementsEvery required decision is validated on a service, or which are missing.
PolicyThe rollback switch, your organization’s managed setting or the privacy policy refuses (nothing is sent), or allows.
ServiceA service for exactly this model is configured and answers.
CredentialA key is present and accepted, is missing, or was refused.
Drift alarmThe sample sentences still embed as they did when the index was made.
Sample lookupRun through the source’s own service, only when every line above permits it.

A line is ok, FAILED (a fault: the index does not match its profile, or the lookup ran and failed), NOT READY (recognized, and waiting for a measurement, a service, a key or a policy) or not run (an earlier line did not permit it). A source that is recognized but not ready reads recognized, but not ready to be searched, and is never worded as a model mismatch. The command exits 0 only when every line is ok.

Rebuild, candidates and rollback

To move an existing source to another model, rebuild it. It is the only way: a source’s vectors cannot be converted.

verbiqo knowledge rebuild team-docs --embedding remote
verbiqo knowledge rebuild team-docs --embedding remote --yes
verbiqo knowledge rollback team-docs
verbiqo knowledge rebuild team-docs --finish
  • Without --yes it only says what would happen: the destination, the sections, the estimated requests and time, the rollback, and the service the text would go to. The estimate is rough.
  • A rebuild does not resume. If it is stopped or fails, it starts over and sends every section again. The source is unchanged until the very end, and a rebuild that fails or is stopped removes what it made.
  • The previous index is kept until you run --finish or rollback.
  • A switch is refused when the new index cannot be searched. Before anything is switched, Verbiqo checks that the three required decisions are validated on the service. If one is missing, inconclusive or measured on a mock only, the original stays active and searchable, nothing is moved, and the new index is kept as a candidate so you can look at it. The command prints where it is.
  • --accept-quality-regression cannot override that refusal.
  • Verbiqo never deletes a candidate by itself. A kept candidate cannot be switched in later. To try again, discard it and rebuild:
verbiqo knowledge status team-docs
verbiqo knowledge rebuild team-docs --discard-candidate
  • A shipped bundle is never changed. --as NEW-NAME makes a separately indexed copy.
  • For a central PostgreSQL store, the new index goes into a schema of its own and the source name is bound to it by one explicit change that keeps the previous binding. Verbiqo never deletes the schema that is no longer read. Drop it yourself with a role that owns it, when you no longer need it: DROP SCHEMA SCHEMA-NAME CASCADE;. Never drop verbiqo_knowledge if other entries still use it.
  • A website source rebuilds like any other. Its page table is carried across and checked, and a rebuild that would lose it is refused.

What an organization can lock and limit

An administrator sets the service, and limits what a person may choose, with one managed setting, knowledgeEmbedding. The key names and an example.

  • Locked fields. Any field set outside constraints is locked. The panel shows it disabled with “Set by your organization”, and embedding set refuses it, naming the field.
  • Constraints only allow or forbid. remote is allowed or forbidden (forbidden turns organization services off), hosts lists allowed host names (*.example.internal matches any host under it), models lists allowed model IDs, and maxDimensions is a ceiling. A value from anywhere else that breaks one is refused with the reason, before anything is saved or sent.
  • A setting that cannot be read refuses. Organization services are refused with the reason, and the built-in model keeps working. A missing setting is not a failed one.
  • The privacy policy applies to every request, Test included. A block rule refuses before the request. A redact rule is enforced as block, because changing a passage would change its vector and drop a fact. The knowledge extension must be allowed by the policy.
  • Rollback switch. VERBIQO_KNOWLEDGE_REMOTE_EMBEDDINGS=0 stops every request to an organization service. It can only refuse: a source made with one is then not searched and says why, and it is never searched with the built-in model instead.
  • Keys are never set centrally. Each person’s key stays in their own Keychain or Credential Manager, never in a file, on a command line or in a log.

Next

Something missing or unclear? Email hello@verbiqo.app.