AI Terms Dictionary

A comprehensive multilingual AI terminology dictionary

Definition

These models map high-dimensional data into a lower-dimensional continuous vector space where similar items are located closer together. This transformation captures semantic relationships, allowing algorithms to perform tasks like similarity search, clustering, and recommendation based on vector distance. Embeddings are fundamental to modern NLP and computer vision applications, enabling machines to understand context and nuance beyond simple keyword matching.

Summary

An embedding model converts raw data like text or images into dense numerical vectors representing semantic meaning.

Key Concepts

Use Cases

Code Example

1
2
3
4
5
6
7
from transformers import AutoTokenizer, AutoModel
import torch

model = AutoModel.from_pretrained('sentence-transformers/all-MiniLM-L6-v2')
tokenizer = AutoTokenizer.from_pretrained('sentence-transformers/all-MiniLM-L6-v2')
inputs = tokenizer('Hello world', return_tensors='pt')
embeddings = model(**inputs).last_hidden_state.mean(dim=1)