The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
docs, community: aerospike docs update (#28717)
Erick Friis288f20475898
diff --git a/docs/docs/integrations/vectorstores/aerospike.ipynb b/docs/docs/integrations/vectorstores/aerospike.ipynbindex b2ad324b05..17f9fda39f 100644--- a/docs/docs/integrations/vectorstores/aerospike.ipynb+++ b/docs/docs/integrations/vectorstores/aerospike.ipynb@@ -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",diff --git a/libs/community/langchain_community/vectorstores/aerospike.py b/libs/community/langchain_community/vectorstores/aerospike.pyindex 10265cb5e9..997646a00f 100644--- a/libs/community/langchain_community/vectorstores/aerospike.py+++ b/libs/community/langchain_community/vectorstores/aerospike.py@@ -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.