diff --git a/docs/docs/integrations/vectorstores/aerospike.ipynb b/docs/docs/integrations/vectorstores/aerospike.ipynb index b2ad324b0554f..17f9fda39f930 100644 --- a/docs/docs/integrations/vectorstores/aerospike.ipynb +++ b/docs/docs/integrations/vectorstores/aerospike.ipynb @@ -29,8 +29,8 @@ "metadata": {}, "outputs": [], "source": [ - "PROXIMUS_HOST = \"\"\n", - "PROXIMUS_PORT = 5000" + "AVS_HOST = \"\"\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.py index 10265cb5e9846..997646a00f98a 100644 --- a/libs/community/langchain_community/vectorstores/aerospike.py +++ b/libs/community/langchain_community/vectorstores/aerospike.py @@ -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.