PHPackages                             sndsabin/module-embedding - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. sndsabin/module-embedding

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

sndsabin/module-embedding
=========================

This module is responsible to generate the embedding vectors.

1.0.0(2mo ago)021GPL-3.0PHP

Since Apr 30Pushed 2mo agoCompare

[ Source](https://github.com/sndsabin/magento2-embedding)[ Packagist](https://packagist.org/packages/sndsabin/module-embedding)[ RSS](/packages/sndsabin-module-embedding/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (1)

Magento2 Module: Embedding
==========================

[](#magento2-module-embedding)

```
`sndsabin/module-embedding`

```

- [Main Functionality](#main-functionality)
- [Installation](#installation)
- [Configuration](#configuration)
- [Generate Product Embedding](#generate-product-embedding)
- [Tested On](#tested-on)

Main Functionality
------------------

[](#main-functionality)

This module generates **product embeddings** for Magento 2 catalogs using OpenAI-compatible models.

> ⚠️ This is **not a standalone module**. It is intended to be used together with a [Semantic Search](https://github.com/sndsabin/magento2-semantic-search) module.

Installation
------------

[](#installation)

- Install the module via composer:

```
composer require sndsabin/module-embedding
```

- Enable the module:

```
bin/magento module:enable SNDSABIN_Embedding
bin/magento setup:upgrade
```

Configuration
-------------

[](#configuration)

Navigate to **Stores → Configuration → Embedding → Settings**

### General

[](#general)

- **API Key**
    - Required for most providers
    - If your provider does not require a key, enter any placeholder value

### Advanced

[](#advanced)

- **Base URI of Model**

    - Example: `https://api.openai.com/v1`
- **Model**

    - Example: `text-embedding-3-small`
- **Embedding Dimension**

    - Example: `1536` (for `text-embedding-3-small`)
- **Index Name**

    - Example: `product_embedding_v1`
    - When changing model or dimensions, update index version
        (e.g. `product_embedding_v1 → product_embedding_v2`)
- **Attributes for Embedding**

    - Product attributes used to generate embeddings
    - Note: Name, SKU, Short Description, and Description are always included

> ⚠️ After configuration, Generate product embeddings. This process may take some time depending on catalog size.

Generate Product Embedding
--------------------------

[](#generate-product-embedding)

### 1. Queue embedding generation

[](#1-queue-embedding-generation)

```
bin/magento sndsabin:catalog_product:embedding:generate
```

This command queues embedding jobs for all products.

> ⚠️ This command is usually run once during initial setup.
>
> Embeddings for new or updated products are generated automatically.

### 2. Run the consumer

[](#2-run-the-consumer)

```
bin/magento queue:consumers:start catalogProductEmbeddingConsumer --batch-size=100
```

This consumer processes queued messages and generates embeddings. Use cronjob or supervisor to start the consumer.

Tested On:
----------

[](#tested-on)

- Magento 2.4.8
- PHP 8.4
- RabbitMQ 4.1
- OpenSearch 3.3

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance83

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

85d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f86ac4de44eb78236ed79b859dbd091b3eea925ce77a77c0a3d479bcf3dc0084?d=identicon)[sndsabin](/maintainers/sndsabin)

---

Top Contributors

[![sndsabin](https://avatars.githubusercontent.com/u/9588306?v=4)](https://github.com/sndsabin "sndsabin (3 commits)")

---

Tags

embeddingmagentomagento2magento2-modulesemantic-search

### Embed Badge

![Health badge](/badges/sndsabin-module-embedding/health.svg)

```
[![Health](https://phpackages.com/badges/sndsabin-module-embedding/health.svg)](https://phpackages.com/packages/sndsabin-module-embedding)
```

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k46](/packages/neuron-core-neuron-ai)[maestroerror/laragent

Power of AI Agents in your Laravel project

639159.9k](/packages/maestroerror-laragent)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

293.1k](/packages/eslazarev-wildberries-sdk)[oat-sa/tao-core

TAO core extension

65143.7k124](/packages/oat-sa-tao-core)[eliashaeussler/typo3-solver

Solver - Extends TYPO3's exception handling with AI generated solutions. Problems can also be solved from command line. Several OpenAI parameters are configurable and prompts and solution providers can be customized as desired.

302.1k](/packages/eliashaeussler-typo3-solver)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
