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 mode embeds the query and compares vectors; text mode matches keywords.
How indexing works
Section titled “How indexing works”- Input — a document body, a ServiceDesk Plus solution, or a ticket field.
- Chunking — the text is split into passages sized to fit a retrieval budget. Each chunk keeps a pointer to its parent document.
- Embedding — each chunk becomes a vector through the Embedding route.
- Storage — the vector lands in a
vector(N)column in PostgreSQL, next to the chunk text. - 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.
Text versus semantic search
Section titled “Text versus semantic search”| Mode | Text | Semantic |
|---|---|---|
| What it compares | Words and stems | Vector direction |
| Finds | Exact identifiers, solution numbers, product names | Paraphrases, synonyms, symptom descriptions |
| Misses | “VPN drops” when the document says “tunnel disconnects” | A precise id typed with a typo |
| Cost | Negligible | One embedding call per query |
| Use when | You know the term | You know the problem |
In practice a technician uses semantic search first and falls back to text for identifiers.
Chunking trade-offs
Section titled “Chunking trade-offs”- 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.
Check index health
Section titled “Check index health”Two different health surfaces, easily confused:
| Surface | What it reports |
|---|---|
| Knowledge Vault counters | All documents, Indexed, Archived — and Pending document approvals |
| Administration → Search index health | State 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.
Limits and failure modes
Section titled “Limits and failure modes”- 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.
Related topics
Section titled “Related topics”Knowledge Vault · Knowledge Sources · Ticket Search · Search index health