Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VEC-323 asd avs on gke tls rbac #59

Closed
wants to merge 11 commits into from
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -164,3 +164,6 @@ cython_debug/
.DS_Store

features.conf

# Kubernetes default generated dir
/kubernetes/generated
49 changes: 49 additions & 0 deletions basic-search/check.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
import argparse
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this file be committed? It seems unnecessary.

from aerospike_vector_search import types
from aerospike_vector_search import AdminClient, Client
listener_name = None


with AdminClient(
seeds=types.HostPort(host="34.71.101.78", port=5000),
is_loadbalancer=True,
listener_name=listener_name,
) as adminClient:
try:
print("creating index")
namespace = "test"
name = "basic_search_idx_binary_index_whatever"
vector_field = "vector"
dimensions = 2
sets = "sillypy_index_binary_index_whatever"

adminClient.index_create(
namespace=namespace,
name=name,
vector_field="vector",
dimensions=dimensions,
sets=sets,
index_storage=types.IndexStorage(namespace=namespace, set_name="sillypy_index_binary_index_storage"),
)
except Exception as e:
print("failed creating index " + str(e))
pass

with Client(
seeds=types.HostPort(host="34.71.101.78", port=5000),
is_loadbalancer=True,
listener_name=listener_name,
) as client:
print("inserting vector")
namespace = "test"
set_name = "basic_search_binary_data_2"
key="nah_bro_binary_data_2"
client.upsert(
namespace=namespace,
set_name=set_name,
key=key,
record_data={
"vector": [True, False, False],
}
)

Binary file added kubernetes.tar
Binary file not shown.
Loading