AI Search and Image Search extension for Magento 2 designed to improve search capabilities of the Magento 2 e-commerce platform providing extended search results based on relevance calculated by using OpenAI embedding models.
Built on the OpenAI Embeddings API, this Magento 2 extension enhances search results by identifying relevance between products in a query through vector comparison. AI Search includes both products and images. It delivers results closely aligned with what the user is looking for, increasing the likelihood of customers finding the right product, which can ultimately drive more sales and improve conversion rates.
By utilizing AI-Driven search capabilities, the extension also offers AI-Driven related product recommendations for Magento 2. It can replace existing related products and generate recommendations on the fly without the need to explicitly define related products in admin panel. This is done for each product in real time.
Requires an OpenAI account.
Requires Elasticsearch 8, Opensearch or Pinecone (paid option) vector database
Hyvä theme ready
Installation & Updates via COMPOSER (optional)
| Lifetime updates | 180 days of free support included ...more |
An extension designed to put modern AI capabilities in production environment and in favour of business.
Your Magento 2 store can now 'understand' what customers are searching for and provide them with tailored results specifically matching their search.
In some edge cases where standard Magento 2 search engine isn't returning results, AI can return results that can be meaningfully related leading to increased conversions.
The extension comes with few selectable UI options to clearly distinguish AI results from other results, it can display a nice SVG icon marking result as AI generated and also it can display the similarity score in terms of percentage. This is useful for both customers and store owners.
A potential customer that is 'nearly' there may not get there at all. With our AI Search extension for Magento 2 you can increase chances for right products to get to the right customer. AI Search extension for Magento 2 designed to improve search capabilities of the Magento 2 e-commerce platform providing extended search results based on AI calculated relevance.
The extension is based on OpenAI Embeddings API. Text embeddings measure the relatedness of text strings. Unlike keyword search, embeddings capture meaning. In essense embeddings are special vector representations of certian test. Having texts and search queries comverted into vectors allows for measuring the distance between these vectors which represents the relatedness between them. Small distance suggests highly related texts while long distances mean less related texts.
The extension works by pulling and storing vectors for existing products into Magento's database. From then on when a customers makes a query, the text is converted into a vector using the OpenAI Embedding API and from then on, this vector is compared with all stored vectors for the products. Best matching results are included in the search results.
Consider the followign scenario:
If you have a prodyuct with name Wooden Led Lamp and customer searches for "light fixtures", natually Magento will not return any result because titles not description match the search query. However, an embedding vector can find relatedness between led/lamp and light fixtures and it will return the product. In the next example if they search for 'items from timber', the vector will again find relation between the search query in the wooden lamp.
As of 03/2025, the Embeddings API cost is $0.020/1M tokens. For example embedding product data (title, description and additional attributes) with total length of 500 words would cost approx. $0.00001
The extension is currently using latest text-embedding-3-small model by OpenAI
The extension is storing embeddings in dedicated table in the database. For databases that do not support VECTOR types, the vector comparison is done using advanced techniques that trade off relation for performance but still deliver outstanding results. If you run database that supports VECTOR types such as MariaDB 11.7+ or MySQL 9+ or others, search performance isn't impacted at all.
Our own search at Anowave is based on this technology, click the AI icon above and give it a try.
All our products come with a 6 full months (180 days) of premium support. To report a bug, use our Premium Help Desk available in your account at Anowave.
There is certain learning curve here but the team helped with everything. I was also concerned about token consumption but embeddings are relatively low cost and for the time being we have consumed less than 10€ for tokens. The module is well written and very flexible, good job Anowave.
Yes, I recommend this product
Certainly not the usual plug and play extension, don't expect things to work out of the box BUT the team proved to be highly seasoned with a lot of experience towards AI implementation. They did all the configuration for our 50k+ product dataset. On top of that, we requested a few custom features such as order tracking etc. and they delivered.
Many thanks to Angel for his persistence and timely support!
Yes, I recommend this product
This extension can be installed in a few minutes, by going through the following steps:
You can install this extension via Composer only after purchasing a Composer support package
Run the following Composer commands
In order to use AI you need to have an account at OpenAI Platform (https://platform.openai.com/)
To obtain an API key which is required for the extension to operate normally, follow the steps below:
The only action required here is to add the same API key in Stores / Configuration / Anowave / Explore / OpenAI API / OpenAI API Key
The extension is based on OpenAI Embeddings API. In order for AI search to operate normally, it has to populate initial embedding vectors for all products form your store.
Product range could vary between stores, some may have a few products, others may have thousands of products. To cover all scenarios, we have implelemented OpenAI Batch API combined with a custom bin/magento command.
By default the extension will embed only the product titles however, vector search works better with more information. You can add more attributes to the embedding vectors by editing your Product attributes at Stores -> Attributes -> Product. Each attribute has 2 new options called Use for AI Buddy and Explore AI. To include the attribute into the embedding vector, set these 2 attributes to Yes. It's recommended to add text attributes such as short_description, meta description, meta keywords or other text attributes. OpenAI models work best with text attributes.
The initial configuration involves the following important steps
Define your attributes that you want embedded, by default the text that gets embedded includes product title, price, short description. This can be extended by updating your attributes properties which now have a new option AI that indicates that the value of the attribute must be included in embedding calculation. This way you can add values such as size, color and other options to searchable text.
To mark an attribute as AI data source:
Fetching ALL embeddings from OpenAI API is done with a BATCH job. Most of the configuration here is handled in CLI (Command Line Interface) through few custom commands coming with the extension.
BATCH JOB
Batch Job is a delayed process, where OpenAI is provided with a file to process. It has 24 hours to process a file and return a response. In reality however this takes between 10 and 30 minutes depending on the size of the processed file. Batch Job allows the module to query the OpenAI Batch API and obtain embedding vectors for thousands of products at once at a fraction of the cost. Embedding tokens cost $0.02 per 1 million tokens.
To create a batch job, execute the following command in console (CLI).
This command will compile a JSONL file with ALL product names, descriptions and desired attributes and it will submit it for batch processing. The command will return a batch job ID which can be used later in time to obtain results, it will return a new parameter with the batch job id.
GETTING BATCH RESULTS
To get the results of the processed JSONL file, execute the following command in console (CLI)
LISTING AVAILABLE BATCH JOBS
To list all current batch jobs, you can use the following command. It is useful for tracking batch status
The parameter 'batch_job_id' is the same ID returned from the initial batch job creation. If the process is complete, the extension will then store embedding vectors for the entire product range and it's good to go.
IMPORTANT: If you've opted for Pinecone support skip this step and scroll down to PINECONE CONFIGURATION in this documentation
Creating custom index in ElasticSearch or OpenSearch.
Opensearch / Elasticsearch 8 Vector Support / (native) MySQL/MariaDB support
Latest version of ElasicSearch 8 and OpenSearch come with vector support and this is supported by the AI Buddy extension as well. It can be set to store embedding vectors into it's own index in OpenSearch. This opens huge possibilities for top peak performance, fast similarity calculation, instant results and much more.
Creating vector index
To create a vecor index run the following command:
Executing this command will create brand new index into OpenSearch or Elasticsearch aimed to store and retrieve embedding vectors.
Updating vector index
To update index run the following command:
Excuting this command will fetch the embedding vectors already stored in the local database into vector index in Opensearch or Elasticseach 8 in effect refreshing embeedings vectors.
MySQL / MariaDb
For customers with ElasticSearch 7 or lower, vector support is not possible. We have however added a native support for non-vector databases such as MySQL and MariaDb. It provides a performant cosine similarity search as well.
Pinecone is a vector database and managed cloud service designed for working with embeddings (numerical representations of data such as text, images, or audio). It’s widely used in AI and machine learning applications, especially for semantic search, recommendation systems, and retrieval-augmented generation (RAG).
In case your stack does not support Elasticsearch8 or OpenSearch, or has very old version of Elasticsearch which does not support vectors or cosine similarity search, Pinecone is a good alternative.
To get started, first create your account at PINECONE. Once you have your account created, then follow the steps below:
Once index is created, you need to configure the Pinecone options in the extension's config screen in Magento 2.
Updating PINECONE vector index
To update index run the following command:
Excuting this command will fetch the embedding vectors already stored in the local database and upsert them into your Pinecone index.
Warning
If you have more than 10000 (10K) products, operation may take a lot of time and consume your Pinecone WU (write units). The command will show approximate information about WUs consumption and time required for the index to update. This applies only on initial indexation.
Creating or deleting Pinecone index via CLI isn't possible.
Hybrid Embedding search is a combination between vector search and AI reasoning. When configured the assistant will first user super fast embedding search and then it will feed the results to OpenAI model to further optimize relevance. This would allow the assistant to return more relevant results and answer questions such as: 'Show me Miter Saw under 2500'. With embedding vector search, it may return results that won't cover 100% of this request but in combination with a reasoning model, results would be more alined to user's query.
Anowave is an extension developer for Magento 1.x and Magento 2.x platforms. We provide a wide range of premium extensions for our in-house and public clients. The extensions we offer extend the capabilities of Magento and provide bespoke functionality. They also fill some gaps in the functionality provided by the base platform and help customers choose Magento as their preferred eCommerce platform.
The extensions we offer are part of our full-range Magento service, which also includes a Premium Helpdesk where customers can speak with actual software engineers and have their issues resolved without hassle. Premium-labeled modules also include free installation, configuration, testing, etc.