Vector dimension mismatch when using Zilliz
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3471259. -->
Reported by: [ultimike](https://www.drupal.org/user/51132)
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>I’m trying to follow along with <a href="https://www.youtube.com/watch?v=ZpLxpp9BJ1c">https://www.youtube.com/watch?v=ZpLxpp9BJ1c</a> in setting up my first AI Search test, and am running into an issue…</p>
<p>Just like the video, I’m using Zilliz (Milvus 2.4+) as well as the current -dev version of the AI module.</p>
<p>Regardless of the “Embeddings Engine” I choose in my Search API server config, I cannot modify the value of “Dimensions” in “Embeddings Engine Configuration”. If I change it and submit the form, it just reverts to the original value.</p>
<p>When using “OpenAI | text-embedding-3-small" as the "Embeddings Engine", “Dimensions” is set to 1536 and the error message is:</p>
<blockquote><p>Exception: Failed to insert into collection: fail to deal the insert data, error: []float32 size 1536 doesn't equal to vector dimension 768 of FloatVector in Drupal\vdb_provider_milvus\Plugin\VdbProvider\MilvusProvider->insertIntoCollection() (line 187 of /var/www/html/web/modules/contrib/ai/modules/vdb_providers/vdb_provider_milvus/src/Plugin/VdbProvider/MilvusProvider.php).</p></blockquote>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<p>Drupal 11, latest -dev version of AI module, following instructions from video: <a href="https://www.youtube.com/watch?v=ZpLxpp9BJ1c">https://www.youtube.com/watch?v=ZpLxpp9BJ1c</a></p>
issue