> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vectoraidb.actian.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Core concepts

> How VectorAI DB works, its data model, and how a search query flows through the system.

> [!NOTE]
>
> **New to vector databases?** Vector databases store numerical representations of your data called embeddings, and find results by similarity rather than exact keyword matching. Use one when meaning matters more than exact text: semantic search, RAG pipelines, agent memory.

## Architecture

VectorAI DB runs as a single Docker container with no external dependencies. Data is persisted to a volume-mounted directory on the host.

| Port | Protocol | Purpose |
| - | - | - |
| 6573 | HTTP | REST API |
| 6574 | gRPC | gRPC API (recommended for SDKs) |
| 6575 | HTTP | Local UI |

The Python and JavaScript SDKs communicate over gRPC by default.

## Data model

| Concept | What it is |
| - | - |
| [Collections](https://docs.vectoraidb.actian.com/docs/fundamentals/collections/collections.md) | Named containers for vectors, similar to tables in a relational database. Each collection has a fixed vector dimension and distance metric set at creation time. |
| [Points](https://docs.vectoraidb.actian.com/docs/fundamentals/points/points.md) | The unit of data in a collection. Each point has a unique ID, a vector embedding, and an optional JSON payload. |
| [Vectors](https://docs.vectoraidb.actian.com/docs/fundamentals/vectors/vectors.md) | Fixed-length arrays of floats that represent your data semantically. Generated by embedding models from text, images, or other content. |
| [Payload](https://docs.vectoraidb.actian.com/docs/fundamentals/payload/payload.md) | JSON metadata attached to a point. Use payloads to store context and to filter search results. |
| [Distance metrics](https://docs.vectoraidb.actian.com/docs/fundamentals/distance-metrics/distance-metrics.md) | The function used to measure similarity between vectors. Supported metrics: Cosine, Euclidean, and Dot Product. |

## How a search works

**1. Generate an embedding**

Your application converts a query (text, image, or other data) into a vector using an embedding model.

**2. Send a search request**

The vector is sent to VectorAI DB over gRPC or REST.

**3. HNSW nearest-neighbour search**

VectorAI DB traverses the HNSW index to find the closest vectors, applying any payload filters inline.

**4. Ranked results returned**

Results come back with IDs, similarity scores, and optional payloads. No post-processing needed.

You can build on this foundation with:

* [Semantic search](https://docs.vectoraidb.actian.com/docs/fundamentals/semantic-search/semantic-search.md) for meaning-based retrieval
* [Hybrid search](https://docs.vectoraidb.actian.com/docs/fundamentals/hybrid-search/hybrid-search.md) to combine dense and sparse scores
* [Filtering](https://docs.vectoraidb.actian.com/docs/fundamentals/filtering/filtering.md) for must, should, and must-not payload conditions

## Next steps

> [card] [Installation](https://docs.vectoraidb.actian.com/home/installation/instructions.md)
>
> Install VectorAI DB with Docker.

> [card] [Quickstart](https://docs.vectoraidb.actian.com/home/quickstart/quickstart.md)
>
> Create a collection, insert vectors, and run a search.

> [card] [Fundamentals](https://docs.vectoraidb.actian.com/docs/fundamentals/index.md)
>
> Collections, points, vectors, search, and filtering.

> [card] [Academy](https://docs.vectoraidb.actian.com/academy/tutorials.md)
>
> Hands-on tutorials for semantic search, RAG, and more.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.