This repo contains a public port of the hybrid search code used on aerospike.com. To run this locally, follow the steps below.
Note
Aerospike Vector Search (AVS) requires a feature key. Request one.
- An Aerospike feature key with vector search enabled.
- Docker & docker-compose
- Clone this repo and navigate to the
hybrid-search
directory.git clone https://github.com/aerospike-examples/hybrid-search.git && cd hybrid-search
- Replace the
config/aerospike/features.replace.conf
andconfig/vector/features.replace.conf
with a valid Aerospike feature key file.Note
The feature key file must have a line item for
vector-service
- Create the containers by running:
DOCKER_BUILDKIT=0 docker compose up -d
- Load data into the database by running:
docker exec -it -w /server search-server python3 load.py
Note
This will take some time. It's scraping and loading the Aerospike support knowledgebase.
- Once the load script is finished, query the endpoint with query parameter
q
.
For example:http://localhost:8080/rest/v1/search/?q=secondary index