/ Модель

Характеристики

Контекст
192 токена
Лицензия
Apache 2.0
Архитектура
embedding_gemma2 · dense
Базовая модель
embeddinggemma-2
Библиотека
sentence-transformers
Опубликована
21 окт 2026

retail-embeddinggemma-2-tw

ЭмбеддингиТекст → embedding3 профессии

Дообученная текстовая модель эмбеддингов для поиска товаров в каталогах Тайваня по запросам на традиционном китайском языке.

63скачиваний за 30 дней1лайквеса обновлены27 окт 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

retail-embeddinggemma-2-tw — текстовая модель эмбеддингов, разработанная President Information Corp. (統一資訊, PIC) и Uni-President Information Philippines Corp. и дообученная на базе google/embeddinggemma-2. Она предназначена для плотного поиска товаров в розничных каталогах Тайваня: сопоставляет короткие запросы покупателей с названиями товаров и может использоваться для генерации кандидатов как самостоятельно, так и вместе с лексическим поиском.

Модель обучалась на запросах реальных покупателей и синтетических запросах, включая смешанные китайско-английские формулировки, опечатки, названия брендов, типы товаров и описания сценариев. Она принимает запросы как без тегов, так и с тегами ключевых слов; при обучении учитывались шумные и ошибочные теги. Для работы на этапе вывода необходимо передавать retrieval-промпты базовой модели, а документы должны содержать названия товаров.

В описанной проверке на 368 отложенных запросах модель превзошла базовую модель по nDCG@10 и точности первого результата; оценка релевантности выполнялась LLM-судьёй, а не людьми или по кликам. Проверка проводилась на одном закрытом каталоге, поэтому качество на других каталогах не установлено; для других языков модель не оценивалась. Данные обучения проприетарные. Лицензия — Apache-2.0, при развёртывании также требуется соблюдать политику запрещённого использования Gemma.

Сценарии применения

  • поиск товаров по коротким запросам на традиционном китайском языке
  • ранжирование названий товаров по запросу покупателя
  • генерация кандидатов для поиска в интернет-магазине
  • поиск товаров по запросу с тегами ключевых слов
  • сопоставление запросов с названиями товаров при опечатках и смешении китайского с английским

Ограничения

Проверка проведена на одном закрытом розничном каталоге, а релевантность оценивала LLM-судья; переносимость на другие каталоги не установлена. Модель рассчитана на традиционный китайский Тайваня, другие языки не оценивались; при использовании нужны retrieval-промпты базовой модели.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

retail-embeddinggemma-2-tw is a text embedding model fine-tuned from google/embeddinggemma-2 for Traditional Chinese (Taiwan) retail product search. It matches short shopper queries (for example, 洗衣精, Mizuno 慢跑鞋, and 客廳 邊桌 小空間) against product titles.

Model Details

Developed byPresident Information Corp. (統一資訊, PIC) and Uni-President Information Philippines Corp. (UNI-PIPC)
Model typeText embedding model (Sentence Transformers)
Base modelgoogle/embeddinggemma-2
Adaptation methodFull fine-tuning (all weights trainable)
Parameters271M
Embedding dimension768
Max sequence length192 tokens (training)
DomainTaiwan retail and e-commerce product search
LanguagesTraditional Chinese (zh-TW)
LicenseApache 2.0

Key Features

  • 🛒 Retail Search Adaptation: Trained mainly on real shopper search queries whose candidate products were graded by an LLM judge, supplemented with LLM-generated queries.
  • 🏷️ Keyword-Tag Support: Accepts bare queries as well as query + keyword tags inputs, as produced by some search stacks. Training included noisy and incorrect tags so that a wrong tag does not override the query.
  • 🎯 Hard-Negative Training: Trained with judge-graded hard negatives, with near-duplicate products and overly broad titles filtered out to avoid false negatives.
  • 🇹🇼 Taiwan Query Style: Covers short brand and product-type keywords, typographical errors, mixed Chinese-English queries, and descriptive or scenario queries.

Training Data

The training data is a proprietary Taiwan retail (zh-TW) dataset and is not publicly available. Queries come from two sources:

  1. Real shopper search queries. Candidate products were retrieved by several retrievers, and an LLM judge graded each (query, product title) pair as 0, 1, or 2. Grade-2 products serve as positives and grade-0 products as hard negatives. Grade-1 products are never used as negatives. Near-identical products (color or size variants) and broad titles that match many queries are filtered out.
  2. LLM-generated queries grounded in real products and written in the style of real traffic, with a smaller share of descriptive and scenario queries.

About 70% of training queries carry keyword tags and 30% are bare queries; a fraction of the tags are deliberately noisy. Held-out evaluation queries were excluded from training.

Training Procedure

ObjectiveContrastive learning (CachedMultipleNegativesRankingLoss) with in-batch negatives and 3 mined hard negatives per example
Batch size128 (effective)
Batch samplerNO_DUPLICATES
OptimizerLearning rate 2e-5, 10% warm-up, linear decay
Precisionbf16
Epochs3
Max sequence length192 tokens
Training hardware1x NVIDIA H100

Evaluation

Evaluation Setup

The fine-tuned model is compared against its base model, google/embeddinggemma-2, and a BM25 baseline (character bigrams). Evaluation uses real shopper search queries that were never used in training (split by query group), restricted to queries with at least one relevant product in the judged pool. Retrieval is performed over one proprietary retail product catalog, with product titles as documents. The held-out test split (368 queries) was scored once, after the recipe was fixed.

Relevance is graded by an LLM judge (DeepSeek-V4-Flash) as 0, 1, or 2. Every product returned by any compared system is graded, so no system is penalized for retrieving a product that was not graded. Metrics are nDCG@10 against all graded products of each query and strict P@1 (the top-ranked product has grade 2); higher is better. Confidence intervals are 95% paired bootstrap intervals (5,000 resamples over queries), and gains are computed from unrounded scores.

🟢 improvement · 🔴 degradation · ⚪ no change (in the gain figures, 🟢 indicates that the 95% confidence interval excludes zero)

Retrieval Quality (Held-out Test Split)

Bare Query

Query + Keyword Tags

BM25 is not evaluated with keyword tags.

nDCG@10 Gain over the Base Model

Training-Overlap Analysis

The gain over the base model is reported by whether the relevant products of each query appeared in this model's training data (evaluation queries themselves were never used):

  • Clean: no grade-2 product of the query was a training positive.
  • Leaked: at least one grade-2 product of the query was a training positive.
  • Never seen: no product of the query, positive or negative, appeared in training (a subset of Clean).

Development Split (1,023 queries)

Used while building the model.

Bare Query

Query + Keyword Tags

Usage

Input Format

The model was trained with the base model's own retrieval prompts, which must be passed at inference. Documents are product titles only.

Sentence Transformers

from sentence_transformers import SentenceTransformer

model = SentenceTransformer("UNI-PIC/retail-embeddinggemma-2-tw")

Q = "task: search result | query: "      # the base model's own retrieval prompts
D = "title: none | text: "

queries = ["洗衣精", "透明貼紙 文具", "客廳 邊桌 小空間"]
docs = ["Hampton 漢汀堡 迪亞小圓桌 寶石藍", "狐吉機場 透明割型貼紙", "白蘭 洗衣精 補充包 1.6kg"]

q = model.encode(queries, prompt=Q, normalize_embeddings=True)
d = model.encode(docs, prompt=D, normalize_embeddings=True)
print(q @ d.T)

Queries with Keyword Tags

If a search stack expands a query into keyword tags, the model was also trained on the input query + " " + ",".join(tags), for example 寶可夢 寶可夢,神奇寶貝,周邊. Bare queries remain fully supported.

Intended Use and Limitations

  • Intended use: Dense retrieval and candidate generation for zh-TW retail product search, alone or combined with lexical search.
  • Judge-based evaluation: Relevance labels come from an LLM judge rather than human annotators or click data. Absolute scores should be read as comparisons between systems under this setup, not as production accuracy.
  • Single catalog: Training and evaluation used one proprietary catalog and its search logs; behavior on substantially different catalogs has not been tested.
  • Tag dependence: Results are reported with and without keyword tags. If your tagger differs from the one used here, evaluate both input formats.
  • Language scope: Taiwan Traditional Chinese only; other languages have not been evaluated.
  • Use policy: Per the base model card, deployments must adhere to the Gemma Prohibited Use Policy.

License and Attribution

This model is released under the Apache License 2.0 (see LICENSE). It is a fine-tuned derivative of google/embeddinggemma-2 by Google DeepMind, which is also licensed under Apache 2.0; all model weights were modified by fine-tuning.

Citation

@misc{retailembeddinggemma2tw,
  title     = {retail-embeddinggemma-2-tw},
  author    = {President Information Corp. (PIC) and Uni-President Information Philippines Corp. (UNI-PIPC)},
  year      = {2026},
  publisher = {Hugging Face},
  url       = {https://huggingface.co/UNI-PIC/retail-embeddinggemma-2-tw}
}

Contact

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · sentence-transformers

Нельзя запустить

Архитектура embedding_gemma2 неизвестна transformers в образе рантайма.

Класс архитектуры
EmbeddingGemma2Model
Ревизия весов
06e3dc9

0 моделей