Retrieval troubleshooting
Diagnosing Aimogen Pro embeddings problems: nothing retrieved, wrong results, stale answers, dimension errors and unexpected cost.
Nothing is retrieved#
Symptoms. The AI answers as though it has no knowledge base.
Work through in order:
- Is retrieval enabled for this context? Settings › Embeddings › Enable Embeddings For. For the
chatbot this is
Chatbot Shortcodes. This is the most common cause by a wide margin. - Does the namespace match? Content indexed into one namespace is invisible to a context configured
for another. Check both, including the
embeddings_namespaceshortcode attribute. - Is anything indexed? Check AI Embeddings › List Added Embeddings.
- Is the vector store reachable? Check System & Logs › Activity Logs for connection errors.
- Is the score threshold too high? A high
OpenAI Vector Store Minimum Scorefilters everything out. - Is the result count zero or one? Pinecone, Qdrant and Chroma default
Number Of Results To Queryto 1. Raise it to 3–5.
Retrieved content is irrelevant#
- The embedding model was changed after indexing. This is the quiet killer — see below.
- Chunks are too large. A whole long post as one chunk produces a vague vector that matches everything weakly.
- The embedding template is poor. Include the title and taxonomy so chunks carry context. See Adding content.
- The namespace is too broad. Searching everything returns the topically-nearest thing, not the correct thing.
- No score threshold. Weak matches are being treated as relevant.
Answers are out of date#
The index reflects content as it was when indexed.
- Re-index edited posts.
- Delete entries for deleted posts — orphaned vectors still get retrieved.
- Enable auto-indexing for new posts.
- Re-index after any bulk edit.
Dimension mismatch errors#
Symptom. The vector store rejects vectors, mentioning dimensions.
The index was created with a different dimension than the embedding model produces. The plugin help text
specifies dimension 1536, metric cosine for Pinecone, Qdrant and Chroma, matching
text-embedding-3-small.
Fix: recreate the index at the correct dimension and re-index from source.
Everything got worse after changing the embedding model#
The chatbot ignores the knowledge base#
Almost always Chatbot Shortcodes not enabled under Settings › Embeddings › Enable Embeddings For. Indexing content and enabling retrieval for the chatbot are two separate steps.
Then check the namespace matches, and that the model is being told to use the reference information — see Retrieval.
Indexing is very slow#
Each document is an API call plus a store write. A thousand posts is a thousand of each.
- Index in batches rather than all at once.
Maximum Number Of Unindexed Articles To Processlimits each batch for duplicate detection indexing.- If
Optimize The %%post_content%% Shortcode Using AIis on, each document also costs a full AI rewrite. Turn it off for a large initial index.
Costs are higher than expected#
Indexing is cheap; retrieval injection is not. Every retrieved chunk is input tokens on every affected request.
- Reduce the result count.
- Raise the score threshold.
- Enable retrieval only for the contexts that need it, not all seventeen.
See Controlling cost.
Related posts are wrong#
[aimogen-related-posts] uses similarity. Tune with the threshold attribute:
[aimogen-related-posts limit="5" threshold="0.8"]Raise it for fewer, closer matches. If nothing appears, the posts are not indexed.
Agent long-term memory is unavailable#
The option is disabled with an explanatory note when embeddings are not fully configured: you need an API key, an embedding model and a vector store. See Creating an agent.
Vector store connection fails#
| Store | Check |
|---|---|
| OpenAI | The OpenAI key, and that a store is selected |
| Pinecone | The index host, including the full .svc.<region>.pinecone.io form |
| Qdrant | The index URL including the port, usually :6333 |
| Chroma | The index URL, tenant and database |
Also confirm your server can reach the host — an outbound firewall will produce the same symptom.
Getting help#
Collect:
- Which vector store and embedding model
- The index dimension
- Which contexts have retrieval enabled, and their namespaces
- Errors from System & Logs › Activity Logs
- System & Logs › System Info
Then open a support ticket.
Related#
Still stuck? Open a support ticket and include the diagnostics from Aimogen Pro › System & Logs › System Info.