Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 833 Bytes

File metadata and controls

33 lines (22 loc) · 833 Bytes

Basic vector search example

A simple Python application that demonstrates vector ANN index creation, vector record insertion, and basic ANN query against the AVS server using the Python client.

Prerequisites

  1. A Python 3.10 - 3.11 environment and familiarity with the Python programming language (see Setup Python Virtual Environment).
  2. An Aerospike Vector Search host (sandbox or local).

Setup build Python Virtual Environment

This is the recommended mode for building the python client.

# Create virtual environment to isolate dependencies.
python3 -m venv .venv
source .venv/bin/activate

Install dependencies

python3 -m pip install -r requirements.txt

## Run the search demo

```shell
python3 search.py