Skip to content

Commit 68f627d

Browse files
author
ajosh0504
committed
Updating VS lab
1 parent 66d6c6d commit 68f627d

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

labs/vector-search-lab.ipynb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,6 @@
188188
"# Use the `multimodal_embed` method of the Voyage AI API with the following arguments to embed the image:\n",
189189
"# inputs: The image wrapped in a list of lists\n",
190190
"# model: `voyage-multimodal-3`\n",
191-
"# input_type: \"query\" or \"document\", doesn't matter for this example\n",
192191
"embedding = <CODE_BLOCK_1>"
193192
]
194193
},

solutions/vector-search-lab.ipynb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,6 @@
188188
"# Use the `multimodal_embed` method of the Voyage AI API with the following arguments to embed the image:\n",
189189
"# inputs: The image wrapped in a list of lists\n",
190190
"# model: `voyage-multimodal-3`\n",
191-
"# input_type: \"query\" or \"document\", doesn't matter for this example\n",
192191
"embedding = vo.multimodal_embed(inputs=[[image]], model=\"voyage-multimodal-3\")"
193192
]
194193
},
@@ -322,7 +321,7 @@
322321
" # Use the `get_embeddings` function defined above to embed the `content`\n",
323322
" # Note that `content` is the cover image of the book, so set the `mode` accordingly\n",
324323
" # `input_type` should be set to \"document\" since we are embedding the \"documents\" we want to search\n",
325-
" embedding = get_embeddings(content, mode=\"image\", input_type=\"document\")\n",
324+
" embedding = get_embeddings(content, \"image\", \"document\")\n",
326325
" # Filter for the document where the `_id` field is equal to the `_id` of the current document\n",
327326
" filter = {\"_id\": result[\"_id\"]}\n",
328327
" # Set the `embedding_field` field to the value `embedding` using the `$set` operator\n",

0 commit comments

Comments
 (0)