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

community: Update aerospike-vector-search client to 2.0.0 in notebook #26291

Closed
wants to merge 27 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/docs/integrations/vectorstores/aerospike.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
"metadata": {},
"outputs": [],
"source": [
"PROXIMUS_HOST = \"<avs-ip>\"\n",
"PROXIMUS_PORT = 5000"
"AVS_HOST = \"<avs-ip>\"\n",
"AVS_PORT = 5000"
]
},
{
Expand All @@ -51,7 +51,7 @@
},
"outputs": [],
"source": [
"!pip install --upgrade --quiet aerospike-vector-search==0.6.1 langchain-community sentence-transformers langchain"
"!pip install --upgrade --quiet aerospike-vector-search==3.0.1 langchain-community sentence-transformers langchain"
]
},
{
Expand Down Expand Up @@ -369,7 +369,7 @@
"from langchain_community.vectorstores import Aerospike\n",
"\n",
"# Here we are using the AVS host and port you configured earlier\n",
"seed = HostPort(host=PROXIMUS_HOST, port=PROXIMUS_PORT)\n",
"seed = HostPort(host=AVS_HOST, port=AVS_PORT)\n",
"\n",
"# The namespace of where to place our vectors. This should match the vector configured in your docstore.conf file.\n",
"NAMESPACE = \"test\"\n",
Expand Down Expand Up @@ -401,7 +401,7 @@
" vector_field=VECTOR_KEY,\n",
" vector_distance_metric=MODEL_DISTANCE_CALC,\n",
" dimensions=MODEL_DIM,\n",
" index_meta_data={\n",
" index_labels={\n",
" \"model\": \"miniLM-L6-v2\",\n",
" \"date\": \"05/04/2024\",\n",
" \"dim\": str(MODEL_DIM),\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def add_texts(

Args:
texts: Iterable of strings to add to the vectorstore.
metadatas: Optional list of metadatas associated with the texts.
metadatas: Optional list of metadata associated with the texts.
ids: Optional list of ids to associate with the texts.
set_name: Optional aerospike set name to add the texts to.
batch_size: Batch size to use when adding the texts to the vectorstore.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
features.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@ cluster:
# Unique identifier for this cluster.
cluster-name: aerospike-vector

# The Proximus service listening ports, TLS and network interface.
# The AVS service listening ports, TLS and network interface.
service:
ports:
5002: {}
# Uncomment for local debugging
advertised-listeners:
default:
address: 127.0.0.1
port: 5002
5002:
advertised-listeners:
default:
address: 127.0.0.1
port: 5002

# Management API listening ports, TLS and network interface.
manage:
Expand All @@ -24,13 +23,14 @@ interconnect:
5001: {}

# Target Aerospike cluster
aerospike:
storage:
seeds:
- aerospike:
port: 3000

# The logging properties.
logging:
enable-console-logging: true
file: "/etc/aerospike-vector-search/avs.log"
levels:
metrics-ticker: off
metrics-ticker: info
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ namespace test {
}
}

namespace proximus-meta {
namespace avs-meta {
replication-factor 1
nsup-period 100

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ services:
command:
- "--config-file"
- "/opt/aerospike/etc/aerospike/aerospike.conf"
proximus:
image: aerospike/aerospike-proximus:0.4.0
avs:
image: aerospike/aerospike-vector-search:0.11.1
ports:
- "5002:5002"
networks:
- aerospike-test
volumes:
- .:/etc/aerospike-proximus
- .:/etc/aerospike-vector-search

networks:
aerospike-test: {}