diff --git a/basic-search/README.md b/basic-search/README.md index ddc1f45..fa7c052 100644 --- a/basic-search/README.md +++ b/basic-search/README.md @@ -6,7 +6,7 @@ vector record insertion, and basic ANN query against the AVS server using the Py ## Prerequisites 1. A Python 3.10 - 3.11 environment and familiarity with the Python programming language (see [Setup Python Virtual Environment](../prism-image-search/README.md#setup-python-virtual-environment)). -2. An Aerospike Vector Search host (sandbox or local) running AVS 0.11.0 or 0.11.1. +2. An Aerospike Vector Search host (sandbox or local) running AVS 0.11.1 or newer. ## Setup build Python Virtual Environment diff --git a/kubernetes/manifests/avs-gke-values-auth.yaml b/kubernetes/manifests/avs-gke-values-auth.yaml index 15f4eb7..e9799db 100644 --- a/kubernetes/manifests/avs-gke-values-auth.yaml +++ b/kubernetes/manifests/avs-gke-values-auth.yaml @@ -91,7 +91,7 @@ image: repository: "aerospike/aerospike-vector-search" pullPolicy: "IfNotPresent" # Overrides the image tag whose default is the chart appVersion. - tag: "0.10.0" + tag: "0.11.1" extraSecretVolumeMounts: - name: aerospike-tls mountPath: "/etc/ssl/certs" diff --git a/prism-image-search/README.md b/prism-image-search/README.md index 4bafbbb..e442a0c 100644 --- a/prism-image-search/README.md +++ b/prism-image-search/README.md @@ -53,8 +53,8 @@ description. ## Install using docker compose -If you have a license key, you can easily set up Aerospike, AVS, and the prism-image-search -app using `docker-compose`. When using `docker-compose`, you'll need to place your images in `container-volumes/prism/images/static/data` +If you have a license key, you can easily setup Aerospike, AVS, and the prism-image-search +app using docker-compose. When using docker-compose, you'll need to place your images in `container-volumes/prism/images/static/data` ```shell ln -s ~/Pictures container-volumes/prism/images/static/data @@ -72,7 +72,7 @@ Add your features.conf file to `container-volumes/avs/etc/aerospike-vector-searc ### 3. Start the environment ``` -docker-compose up +docker compose up ``` ## Developing diff --git a/prism-image-search/container-volumes/prism/images/static/data/avs.png b/prism-image-search/container-volumes/prism/images/static/data/avs.png new file mode 100644 index 0000000..c70a759 Binary files /dev/null and b/prism-image-search/container-volumes/prism/images/static/data/avs.png differ diff --git a/prism-image-search/docker-compose-dev.yml b/prism-image-search/docker-compose-dev.yml new file mode 100644 index 0000000..81aa4f1 --- /dev/null +++ b/prism-image-search/docker-compose-dev.yml @@ -0,0 +1,53 @@ +services: + aerospike: + image: aerospike/aerospike-server-enterprise:7.0.0.2 + ports: + - "3000:3000" + networks: + - avs-demo + volumes: + - ./container-volumes/aerospike/etc/aerospike:/opt/aerospike/etc/aerospike + command: + - "--config-file" + - "/opt/aerospike/etc/aerospike/aerospike.conf" + # use this line to store all index and vector data in the default namespace (test) + # - "/opt/aerospike/etc/aerospike/aerospike-single-namespace.conf" + healthcheck: +# test: [ "CMD", "asinfo", "-U", "admin", "-P", "admin", "-p", "3000", "-v", "build" ] + test: [ "CMD", "asinfo", "-p", "3000", "-v", "build" ] + interval: 5s + timeout: 20s + retries: 10 + avs: + image: aerospike/aerospike-vector-search:0.11.1 + depends_on: + aerospike: + condition: service_healthy + networks: + - avs-demo + volumes: + - ./container-volumes/avs/etc/aerospike-vector-search:/etc/aerospike-vector-search + healthcheck: + test: ["CMD", "curl", "-f", "http://avs:5040/manage/rest/v1"] + interval: 5s + timeout: 20s + retries: 10 + app: + image: prism:latest + depends_on: + avs: + condition: service_healthy + ports: + - "8080:8080" + networks: + - avs-demo + environment: + AVS_HOST: avs + AVS_PORT: "5000" + APP_NUM_QUOTES: "5000" + GRPC_DNS_RESOLVER: native + volumes: + - ./container-volumes/prism/images:/prism/static/images/data + +networks: + avs-demo: {} diff --git a/prism-image-search/docker-compose.yml b/prism-image-search/docker-compose.yml index 81aa4f1..54d74db 100644 --- a/prism-image-search/docker-compose.yml +++ b/prism-image-search/docker-compose.yml @@ -33,7 +33,7 @@ services: timeout: 20s retries: 10 app: - image: prism:latest + image: aerospike/prism-search-example:latest depends_on: avs: condition: service_healthy diff --git a/quote-semantic-search/docker-compose-dev.yml b/quote-semantic-search/docker-compose-dev.yml new file mode 100644 index 0000000..44f227d --- /dev/null +++ b/quote-semantic-search/docker-compose-dev.yml @@ -0,0 +1,55 @@ +services: + aerospike: + image: aerospike/aerospike-server-enterprise:7.0.0.2 + # ports: + # - "3000:3000" + networks: + - avs-demo + volumes: + - ./container-volumes/aerospike/etc/aerospike:/opt/aerospike/etc/aerospike + command: + - "--config-file" + - "/opt/aerospike/etc/aerospike/aerospike.conf" + # use this line to store all index and vector data in the default namespace (test) + # - "/opt/aerospike/etc/aerospike/aerospike-single-namespace.conf" + healthcheck: +# test: [ "CMD", "asinfo", "-U", "admin", "-P", "admin", "-p", "3000", "-v", "build" ] + test: [ "CMD", "asinfo", "-p", "3000", "-v", "build" ] + interval: 5s + timeout: 20s + retries: 10 + avs: + depends_on: + aerospike: + condition: service_healthy + image: aerospike/aerospike-vector-search:0.11.1 + # ports: + # - "5002:5002" + networks: + - avs-demo + volumes: + - ./container-volumes/avs/etc/aerospike-vector-search:/etc/aerospike-vector-search + healthcheck: + test: ["CMD", "curl", "-f", "http://avs:5040/manage/rest/v1"] + interval: 5s + timeout: 20s + retries: 10 + app: + image: quote-search:latest + depends_on: + avs: + condition: service_healthy + ports: + - "8080:8080" + networks: + - avs-demo + volumes: + - ./container-volumes/quote-search/data:/container-volumes/quote-search/data + environment: + AVS_HOST: avs + AVS_PORT: "5000" + APP_NUM_QUOTES: "5000" + GRPC_DNS_RESOLVER: native + +networks: + avs-demo: {} \ No newline at end of file diff --git a/quote-semantic-search/docker-compose.yml b/quote-semantic-search/docker-compose.yml index c90c4a7..473dddb 100644 --- a/quote-semantic-search/docker-compose.yml +++ b/quote-semantic-search/docker-compose.yml @@ -35,7 +35,7 @@ services: timeout: 20s retries: 10 app: - image: quote-search + image: aerospike/quote-search-example:latest depends_on: avs: condition: service_healthy