Analytics Legends The knowledge platform for SAP Analytics
Concept card

Embeddings

Embeddings — Analytics Legends section illustration for the SAP Analytics knowledge base (concepts, studies, Academy)

As of 2026-07-23

What is Embeddings?

Sentence embeddings power RAG by matching meaning, not syntax — but the trade-off is stark: a large model (3,072d, $0.13/M) versus small (1,536d, $0.02/M) versus a local 384d model, and mixing models in one index silently breaks retrieval.

What it is

An embedding is a dense real-valued vector that encodes the semantic content of a token, sentence, or document in a high-dimensional space, such that semantically similar inputs cluster geometrically. Embeddings are the bridge between discrete text and the continuous mathematics of neural networks.

The problem they solve is the inability of exact-match search to find 'net revenue' when the user asks 'total income' — embeddings encode meaning, not syntax, enabling semantic retrieval at scale.

Why it matters

  • Matryoshka Representation Learning compresses a 3,072d vector down to a usable 256d with only ~5% NDCG@10 loss — a concrete storage-cost lever.
  • SAP HANA Cloud's vector engine returns top-k results under 10ms at 1M documents with native 1,536d cosine similarity — a real performance baseline to quote.
  • Model incompatibility across an index is an unforced error: embeddings from different models occupy incompatible vector spaces.

Key points

  • Sentence embeddings (not word embeddings) are the correct unit for RAG over SAP documents — one vector per paragraph, not per token.
  • Cosine similarity, not Euclidean distance, is the standard metric for embedding similarity; HANA Cloud uses cosine by default.
  • Matryoshka embeddings allow truncation from 3,072d to 256d with only ~5% NDCG@10 loss — large storage savings.
  • Never mix embeddings from different models in the same index; the vector spaces are not aligned.
  • HANA Cloud vector engine: 1,536d cosine, top-k < 10ms at 1M docs — no external vector DB required for most SAP RAG workloads.
  • Embeddings is mastered only when it changes a named buyer decision.
  • Start with the semantic contract and control model before demonstrating the tool.
  • Use current SAP, analyst, study, KG, and news signals as evidence, not decoration.
  • Separate verified facts from directional trends and modeled assumptions.
  • Define owner, metric, threshold, support path, and rollback before scaling.

Terms used on this page

Embedding
A dense real-valued vector representing a text unit in a learned semantic space.
Cosine similarity
cos(θ) = (A·B)/(|A||B|): measures angle between two vectors; 1.0 = identical direction, 0 = orthogonal, −1 = opposite.
Matryoshka Representation Learning (MRL)
Training technique that makes the first k dimensions of a large embedding usable as a standalone smaller embedding, enabling flexible dimensionality.
RAG
Retrieval-Augmented Generation: architecture that embeds a document corpus, retrieves the top-k relevant chunks at query time, and appends them to the LLM prompt.
Vector index
An approximate nearest-neighbour (ANN) index (e.g. HNSW, IVF) that enables sub-linear search over large embedding collections.
Decision owner
The accountable person who accepts the trade-off and funds the next action.
Semantic contract
The shared definition of business terms, metrics, entities, and access rules used by tools and teams.
Control plane
The layer that applies policy, access, lineage, monitoring, and escalation across the operating model.

Sources

  1. Mikolov et al. 2013 — Efficient Estimation of Word Representations (Word2Vec)
  2. Su et al. 2021 — RoFormer: Enhanced Transformer with Rotary Position Embedding
  3. Press et al. 2022 — Train Short, Test Long: ALiBi
  4. Kusupati et al. 2022 — Matryoshka Representation Learning
  5. OpenAI text-embedding-3 model card
  6. SAP HANA Cloud vector engine documentation
  7. Peng et al. 2023 — YaRN: Efficient Context Window Extension of LLMs
  8. SAP News Center — Accelerate the Autonomous Enterprise with SAP Business Data Cloud
  9. SAP Datasphere — Help Portal
  10. SAP Datasphere — official product page
  11. SAP Analytics Cloud — Help Portal
  12. SAP Analytics Cloud — official product page
  13. SAP BW/4HANA — Help Portal
  14. SAP S/4HANA — Help Portal
  15. SAP News Center
  16. SAP Community
  17. SAP — industries overview
  18. SAP Business AI — official product page
  19. SAP Joule (work companion) — official product page
  20. SAP Generative AI — official product page
  21. Stanford HAI — AI Index Report
  22. Meta AI — Llama model research
  23. arXiv — preprint archive (cs.CL/cs.AI)
  24. HuggingFace — model hub
  25. Gartner — research & analyst site
  26. BARC — BI & Analytics research
  27. TDWI — data & analytics research
  28. DSAG — German-speaking SAP user group
  29. ASUG — Americas' SAP User Group
  30. Databricks — official site
  31. SAP Sapphire Orlando 2026 - AI database for AI agents and apps: Overview of SAP HANA Cloud — SAP Community (Technology Blog Posts by SAP)
  32. Unlocking custom AI use-cases with SAP HANA Cloud — SAP Community (Technology Blog Posts by SAP)
  33. SAP HANA Cloud: Expert-Guided Implementation Workshop Series — SAP Community (Technology Blog Posts by SAP)
  34. What’s New in SAP HANA Cloud – March 2026 — SAP Community (Technology Blog Posts by SAP)
  35. A Use Case for HANA Cloud Knowledge Graph: AI‑Driven Tender Analysis — SAP Community (Technology Blog Posts by Members)
  36. SAP Generative AI Hub: RAG on SAP Data with HANA Cloud Vector Store (Part 4 of 6) — SAP Community (Artificial Intelligence Blogs Posts)
  37. BM25 and Hybrid Search for RAG on SAP HANA Cloud (without PAL) — SAP Community (Artificial Intelligence Blogs Posts)
  38. Migrating to SAP HANA Cloud: What Actually Gets Better (Part 1 of 2) — SAP Community (Technology Blog Posts by SAP)
  39. LangGraph Checkpoint Saver for SAP HANA Cloud — SAP Community (Artificial Intelligence Blogs Posts)
  40. New Machine Learning, NLP and AI features in SAP HANA Cloud 2025 Q3 — SAP Community (Technology Blog Posts by SAP)
  41. Beyond Vectors: The Next Evolution of RAG on SAP BTP using SAP HANA Cloud — SAP Community (Artificial Intelligence Blogs Posts)
  42. New Machine Learning, NLP and AI features in SAP HANA Cloud 2025 Q4 — SAP Community (Technology Blog Posts by SAP)
  43. Help future-proof your database landscape with SAP HANA Cloud — SAP Community (Technology Blog Posts by SAP)
  44. JOIN US: Meet SAP HANA Cloud @ SAP TechEd 2025 — SAP Community (Technology Blog Posts by SAP)
  45. Step-by-Step: Implementing Generative AI with SAP HANA Cloud — SAP Community (Technology Blog Posts by Members)
  46. What’s New in SAP HANA Cloud – September 2025 — SAP Community (Technology Blog Posts by SAP)
  47. Building a RAG Bot on SAP BTP With Hana Cloud Vector Engine and AI Core — SAP Community (Technology Blog Posts by SAP)
  48. New Machine Learning and AI features in SAP HANA Cloud 2025 Q2 — SAP Community (Technology Blog Posts by SAP)
  49. Fast-Track Your AI Journey with SAP HANA Cloud’s Vector Engine Through Our New Expert Guided service — SAP Community (Technology Blog Posts by SAP)
  50. Semantic Querying with SAP HANA Cloud Knowledge Graph using RDF, SPARQL, and Generative AI in Python — SAP Community (Technology Blog Posts by SAP)
  51. 🚀 SAP AI Core Agent QuickLaunch Series 🚀 - Part 4 RAG Basics ①: HANA Cloud VectorEngine&Embedding — SAP Community (Technology Blog Posts by SAP)
  52. 🚀 秒速で学ぶ SAP AI Core Agent 開発 🚀 - Part4 RAG 基礎 ①: HANA Cloud VectorEngineと埋め込み処理 — SAP Community (Technology Blog Posts by SAP)
  53. Making RAG work better: Implementing Parent Document Retriever with SAP HANA Cloud Vector Engine — SAP Community (Technology Blog Posts by SAP)
  54. New Machine Learning and AI features in SAP HANA Cloud 2025 Q1 — SAP Community (Technology Blog Posts by SAP)
  55. HANA Cloud’s VECTOR EMBEDDING in CAP and Comparison with OpenAI Embedding — SAP Community (Technology Blog Posts by SAP)

Full card available to members. What the full card adds: the full decision framework · the SAP vs Snowflake / Databricks / Fabric comparison · the common pitfalls and their fix · the cheat sheet · the architecture schemas · the code blocks.

Open in the app →