docs, community: aerospike docs update (#28717)

Co-authored-by: Jesse Schumacher <jschumacher@aerospike.com>
Co-authored-by: Jesse S <jschmidt@aerospike.com>
Co-authored-by: dylan <dwelch@aerospike.com>
This commit is contained in:
Erick Friis
2024-12-13 16:27:37 -08:00
committed by GitHub
parent bd008baee0
commit 288f204758
2 changed files with 6 additions and 6 deletions

View File

@@ -29,8 +29,8 @@
"metadata": {},
"outputs": [],
"source": [
"PROXIMUS_HOST = \"<avs-ip>\"\n",
"PROXIMUS_PORT = 5000"
"AVS_HOST = \"<avs-ip>\"\n",
"AVS_PORT = 5000"
]
},
{
@@ -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"
]
},
{
@@ -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",
@@ -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",

View File

@@ -168,7 +168,7 @@ class Aerospike(VectorStore):
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.