Vector Database — Introduction

Tony
6 min readOct 21, 2023
Pic from zhuanlan.zhihu.com

First of all, before we start exploring vector databases, it’s important to understand what vectors are in the context of programming and machine learning.

In the context of programming and machine learning, a vector is a one-dimensional array of elements. These elements can be of any type such as integers, floats, strings, and more. Vectors are a fundamental part of many programming languages, including Python, C++, Java, and more. They are used to store data that can be processed in a sequential manner.

For example, to define a vector in Python:

# Define a vector using a Python list
vector = [1, 2, 3, 4, 5]
print(f"Vector: {vector}")

Beyond mere numerical arrays, vectors serve a pivotal role within the realm of machine learning. They provide a means to represent and manipulate data within high-dimensional spaces. This capacity allows for the execution of intricate operations and computations that power AI models. Therefore, vectors are more than simple numerical sequences; they are integral components in the functioning and performance of machine learning systems.

What is Vector Database

--

--

Tony
Tony

Responses (1)