Skip to content

Indexing and search

Two indexes exist in MAIA Plus and they answer different questions. The knowledge index answers “what do we know about this?”; the ticket index answers “have we seen this before?”. Both are built the same way — text is chunked, embedded, and stored as vectors next to the original text — and both fail the same way when the embedding route is wrong.

Semantic search in the Knowledge Vault with a query typed into the repository search box.

Semantic mode embeds the query and compares vectors; text mode matches keywords.

  1. Input — a document body, a ServiceDesk Plus solution, or a ticket field.
  2. Chunking — the text is split into passages sized to fit a retrieval budget. Each chunk keeps a pointer to its parent document.
  3. Embedding — each chunk becomes a vector through the Embedding route.
  4. Storage — the vector lands in a vector(N) column in PostgreSQL, next to the chunk text.
  5. Query time — the query is embedded with the same model, ranked by similarity, then filtered by portal, visibility and source.

The dimension N is fixed when the schema is created (PGVECTOR_DB_VECTOR_DIMENSION, default 1024). If the model returns a different dimension, inserts fail — this is a hard constraint, not a tuning knob.

ModeTextSemantic
What it comparesWords and stemsVector direction
FindsExact identifiers, solution numbers, product namesParaphrases, synonyms, symptom descriptions
Misses“VPN drops” when the document says “tunnel disconnects”A precise id typed with a typo
CostNegligibleOne embedding call per query
Use whenYou know the termYou know the problem

In practice a technician uses semantic search first and falls back to text for identifiers.

  • Small chunks retrieve precisely but lose surrounding context, so an answer can be technically correct yet unusable in practice.
  • Large chunks carry context but dilute similarity and consume the answer budget.
  • One document, many chunks means a single long runbook can answer several questions — and can also flood a result set if every chunk scores well.

The RAG chunks section of the document detail drawer shows exactly what retrieval sees, so a bad answer is debuggable: open the document, read the chunk, fix the chunk.

Two different health surfaces, easily confused:

SurfaceWhat it reports
Knowledge Vault countersAll documents, Indexed, Archived — and Pending document approvals
Administration → Search index healthState of the ticket index and its refresh controls

A healthy knowledge index shows documents flipping to Indexed shortly after upload. A ticket index that lags shows stale results in Ticket Search and in every workflow that reads it.

  • Embedding model changed → stored vectors are incomparable; the corpus must be re-embedded.
  • Embedding route unassigned → documents ingest as text and never become retrievable.
  • Dimension mismatch → every insert fails with a vector-size error.
  • Chunk too large → retrieval quality drops before any error appears.
  • Portal filter too narrow → the document exists and is indexed but never matches a query from another portal.
  • Duplicate ingestion → the same passage exists twice and appears twice in results.

Knowledge Vault · Knowledge Sources · Ticket Search · Search index health