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(1mo ago)021GPL-3.0PHP

Since Apr 30Pushed 1mo 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 1w 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

35

—

LowBetter than 77% of packages

Maintenance92

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity33

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

40d 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

[maestroerror/laragent

Power of AI Agents in your Laravel project

638142.5k](/packages/maestroerror-laragent)[neuron-core/neuron-ai

The PHP Agentic Framework.

1.9k496.1k32](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3751.2M45](/packages/tencentcloud-tencentcloud-sdk-php)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

744284.3k34](/packages/civicrm-civicrm-core)[roundcube/roundcubemail

The Roundcube Webmail suite

7.0k1.4k3](/packages/roundcube-roundcubemail)[spatie/laravel-export

Create a static site bundle from a Laravel app

670139.5k6](/packages/spatie-laravel-export)

PHPackages © 2026

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