Zum Inhalt springen

Text-Embeddings und semantische Suche

Sätze in Vektoren wandeln und die semantisch nächsten holen

Sprache & WissenFortgeschritten#09
EingabeTextTabelle

Der vollständige Artikel liegt auf Englisch vor; Titel und Zusammenfassung sind lokalisiert.

Was diese Fähigkeit bedeutet

Encodes a piece of text into a fixed-length vector so that semantically similar texts sit close together, then retrieves related items by nearest-neighbour lookup. Output is a ranked result list (item ids and scores), not prose. Unlike question answering it only finds possibly relevant material; it does not compose the answer.

Wie sie technisch umgesetzt wird

The mainstream design is a two-tower model: queries and documents are compressed by encoders, and training pushes true pairs above random negatives, typically with contrastive learning and large batches. At query time all document vectors are pre-computed into an index and an approximate nearest-neighbour search returns the top-k in milliseconds. Sparse and dense representations are often mixed to combine keyword hits with semantic recall.

Repräsentative Produkte

6

Pinecone

Pinecone

Verwaltete Vektordatenbank für Ähnlichkeitssuche

2Fähigk.
Infrastruktur Geschlossen
2019

Hugging Face

Hugging Face Hub

Die Sammelstelle für offene Modelle und Datensätze

2Bezug
Plattform Open Source
2016

Hugging Face

Transformers

Eine API zum Laden und Trainieren vortrainierter Modelle

2Bezug
Werkzeug Open Source
2018

Replicate

Replicate

Community-Modelle über eine API ausführen

1Bezug
Plattform Geschlossen
2019

Perplexity AI

Perplexity

Antwortet beim Suchen, jede Antwort mit Quellen belegt

3Fähigk.
App Freemium
TextText
2022

Beteiligte Organisationen

Typische Verwendungen

  • Search over enterprise documents and code
  • The recall stage of RAG pipelines
  • Deduplication, clustering and topic discovery
  • Recommendation and similar-content entry points

Wie sie bewertet wird

Recall@k
Whether the top-k contain all relevant documents
nDCG
Discounted cumulative gain that accounts for rank position
MRR
Mean reciprocal rank of the first relevant result

Grenzen und schwierige Punkte

  • Semantic similarity is not relevance: near neighbours may merely share wording
  • Cross-domain or cross-lingual use degrades noticeably without adaptation
  • Chunking long documents severs context, and answers at chunk boundaries are easily missed

Konzepte dahinter

NLP und große Sprachmodelle

Wort-EmbeddingsAnfänger

Wörter werden zu Koordinaten: Synonyme rücken zusammen und Bedeutung lässt sich erstmals addieren

4Bezug
Abbildungen 1 · Daten 2

Grundlagen der Mathematik und Statistik

Vektoren und VektorräumeAnfänger

KI verwandelt alles – Wörter, Bilder, Klänge – in eine Liste von Zahlen

3Bezug
Abbildungen 1 · Daten 1

KI-Engineering, Sicherheit und Ethik

Retrieval-Augmented GenerationAnfänger

Wissen nicht in die Parameter stopfen, sondern draußen halten und bei Bedarf nachschlagen – wie eine Open-Book-Prüfung

4Bezug
Abbildungen 2 · Daten 1