Skip to content

Commit

Permalink
Merge branch 'master' into users/akataria/FTS_cosmos_nosql
Browse files Browse the repository at this point in the history
  • Loading branch information
aayush3011 authored Dec 14, 2024
2 parents 5531759 + 288f204 commit 2da2db9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
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

0 comments on commit 2da2db9

Please sign in to comment.