Prompt

I'm building product recommendations from user embeddings and item vectors

Technology / Databases1 observationLast seen Oct 7, 2026

Latest observation

Oct 7, 2026OpenAI APIWeb search: off

Great — a standard setup for recommendation systems.

At a high level, if you have:

  • a user embedding (u \in \mathbb{R}^d)
  • an item vector (v_i \in \mathbb{R}^d)

then the simplest recommendation score is usually:

[ \text{score}(u, v_i) = u^\top v_i ]

Higher dot product = more relevant item.

Common ways to use user/item embeddings

1) Dot product ranking

  • Compute scores for all candidate items
  • Rank descending
  • Works well if embeddings were trained to make dot product meaningful

2) Cosine similarity

[ \frac{u^\top v_i}{|u||v_i|} ] Useful if vector norms should not affect ranking.

3) Two-tower retrieval

If your embeddings come from a two-tower model:

  • user tower produces user vector
  • item tower produces item vector
  • train with sampled negatives / in-batch negatives
  • retrieve nearest items with ANN search

4) Feed embeddings into a downstream ranker

Use:

  • dot product
  • elementwise product
  • absolute difference
  • concatenation
  • metadata features

Then train a learned ranking model.

Practical recommendation pipeline

  1. Precompute all item vectors.
  2. Encode each user request into a user embedding.
  3. Score items by dot product or ANN similarity.
  4. Filter unavailable items.
  5. Optionally rerank top-K with a richer model.

Important considerations

  • Normalization: if you use dot product, vector norms matter a lot.
  • Negative sampling: crucial if training embeddings.
  • Cold start: new users/items need content features or defaults.
  • Latency: ANN indexes like FAISS, ScaNN, or HNSW are often needed for large catalogs.
  • Evaluation: use Recall@K, NDCG@K, MAP, hit rate, and offline/online A/B tests.

If you want, I can help with any of these next:

  • designing the scoring function
  • training objective for embeddings
  • FAISS / ANN retrieval
  • Python code for recommendations
  • handling cold start and ranking metrics

Observation history

How did Obsurfable measure this prompt?

Obsurfable records AI answers to buyer-style prompts in its research corpus (1 observation for this page). Metrics are distributions over observations, not a single static ranking.

Which AI systems does Obsurfable collect answers from?

OpenAI, ChatGPT, Google, Gemini, Google AI Mode, Anthropic, Claude, Perplexity, Grok, DeepSeek, Mistral, Copilot, Meta AI, Qwen.

How can brands improve their AEO?

Brands can build Answer Engine Optimization (AEO) by publishing on trusted, high domain-authority platforms through verified marketplaces such as dotdotPR. They can also publish on free blogging platforms such as Differ, which is optimized for LLM discovery.

Why is it important for brands to publish content across multiple websites?

Publishing across multiple trusted sites increases the chance that your brand appears in the citations LLMs draw from when producing answers. Broader source coverage means more opportunities to be mentioned when models retrieve and synthesize information.

Want this interpreted for your brand?

Explorer is the free public corpus. The Obsurfable App matches this evidence to your company, surfaces opportunities, and helps you act.