Vector

term_id: vector

Category: basic_concepts

Definition

In artificial intelligence, a vector is a fundamental data structure used to represent information numerically. It consists of an ordered list of numbers (elements) that map features of an entity into a coordinate system. High-dimensional vectors, known as embeddings, allow machines to capture semantic relationships between words, images, or other data types by positioning similar items closer together in vector space, enabling efficient similarity searches and machine learning computations.

Summary

A mathematical object representing a quantity with both magnitude and direction, often used in AI to encode data points in high-dimensional space.

Key Concepts

  • Dimensionality
  • Embedding
  • Magnitude
  • Direction

Use Cases

  • Semantic search in databases
  • Natural language processing embeddings
  • Image recognition feature extraction

Code Example

1
2
3
import numpy as np
vec = np.array([1.0, 2.0, 3.0])
print(vec.shape)