Troubleshooting missing embeddings from LWAI vectorization pipelines
Issue
You run a job that sends documents through an index pipeline with one or more Lucidworks AI (LWAI) vectorize stages. The job finishes, but the vector fields (for example, a field ending in _256v and its _b companion) are missing from the documents. In some cases, other document fields are also changed in ways you didn't intend.
This article covers the common configuration causes and how to fix each one.
Environment
Fusion 5.9.x with Lucidworks AI index stages (LWAI Vectorize Field, LWAI Batch Vectorize) and the Solr Partial Update Indexer stage.
Cause 1: The selected model doesn't exist in this environment's Lucidworks AI account
Model IDs belong to the Lucidworks AI account configured through Lucidworks AI Gateway for each environment. When you copy a pipeline from one environment to another, the stage can keep a model that the target environment's account doesn't have. Vectorization calls then fail and no vectors are written.
How to check: Open the LWAI stage and look at the Model dropdown. If the saved model isn't one of the options listed, the stage is pointing at a model this environment doesn't have.
Resolution: In each LWAI stage, select the Account Name and Model again from the dropdowns in that environment. If your model or account name does not appear in the list, check your Lucidworks AI Gateway configuration.
Cause 2: The model's output dimension doesn't match the vector field
Vector field suffixes are strict. A *_256v field accepts only 256-dimension vectors, a *_384v field accepts only 384-dimension vectors, and so on. If a model returns 768-dimension vectors but the destination field ends in _256v, Solr rejects the update.
When the pipeline writes the full document, one rejected vector causes Solr to reject the whole document. Valid embeddings written to other fields on the same document are lost along with it.
Resolution:
- Make sure each stage's Destination field suffix matches the output dimension of the model it uses.
- If a field with the right dimension doesn't exist in your schema, add one, or use a model whose output dimension matches the field.
Cause 3: The Solr Partial Update Indexer doesn't include the vector fields
When the pipeline ends with a Solr Partial Update Indexer stage, only the fields listed in its Updates section are written. The LWAI vectorize stage writes two fields per destination: the vector field ({Destination Field}) and a boolean companion ({Destination Field}_b) that records whether the vector was indexed. If you add a new vectorize stage or change a destination field, both the new vector field and its _b companion must be listed under Updates. Otherwise, the vectors are created but never saved.
Resolution: Add every vector field and its {field}_b boolean field to the Updates section. Then test with a single document before you run the full job.
Cause 4: The job's read query excludes documents it already processed
Vectorization jobs are often configured with a read query that selects only documents that don't yet have the field used to build the embedding (for example, a query that excludes documents where that field is present). Once the pipeline writes that field on a document, the document no longer matches the query, so later runs don't select it again.
Resolution: Check how many documents still match the job's read query. To reprocess documents that already have the field, adjust the job's query or clear that field on the affected documents.
Cause 5: Unlisted fields are rewritten when Process All Pipeline Doc Fields is on
By design, the Solr Partial Update Indexer only updates the fields listed under Updates and Deletions. When Process All Pipeline Doc Fields is enabled, the stage also sends every other field on the pipeline document to Solr and applies atomic update rules to them: a non-map field value is treated as a set for that field. A full Solr Indexer stage likewise rewrites the whole document.
If you only intend to update the vector fields, enabling this option can overwrite other fields with the pipeline's version of their values.
Resolution:
- In the Solr Partial Update Indexer, turn off Process All Pipeline Doc Fields so that only the fields listed under Updates and Deletions are changed.
- To repair documents whose fields were already overwritten, clear the collection and reindex it through your normal product feed.
Choosing set or add for partial updates
In the Updates section, the Update Type controls how each field value is applied (the default is set):
setreplaces the field's current value.addappends to the existing values, so both the old and new values are kept.
For the field used to build embeddings, set is usually the right choice, because the embedding should reflect the document's current content.
Align the query pipeline with the index pipeline
After you change the embedding model or vector field, update the query pipeline to match:
- In the LWAI Vectorize Query stage, select the same model used at index time.
- In the Neural Hybrid Query stage, set Vector Query Field to the same field used as the Destination at index time.
Processing many documents
The LWAI Vectorize Field stage processes one document at a time. If you have many documents to process, the LWAI Batch Vectorize stage (Fusion 5.9.15 and later) processes documents in batches before sending them to the next stage. It keeps the same field names and values as the LWAI Vectorize Field stage, so you can switch between them without changing the rest of the pipeline. The Maximum Batch Size field should not exceed the maximum value supported by your model; the Lucidworks AI maximum is 32.
Checking logs and results
- To see errors while a job runs, open the Fusion Log Viewer and filter to your environment's namespace.
- New vectors are visible in queries after the collection's next commit.
- To count documents that have a vector, query the boolean companion field (for example,
fq={field}_b:true), which the vectorize stage sets when a vector is indexed.
If none of these causes match what you see, contact support.