Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions docs/weaviate/model-providers/_includes/provider.vectorizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1207,18 +1207,22 @@
properties=[
Property(name="title", data_type=DataType.TEXT),
Property(name="poster", data_type=DataType.BLOB),
Property(name="trailer", data_type=DataType.BLOB),
],
vector_config=[
Configure.Vectors.multi2vec_voyageai(
name="title_vector",
model="voyage-multimodal-3",
# Define the fields to be used for the vectorization - using image_fields, text_fields
model="voyage-multimodal-3.5",
# Define the fields to be used for the vectorization - using image_fields, text_fields, video_fields
image_fields=[
Multi2VecField(name="poster", weight=0.9)
Multi2VecField(name="poster", weight=0.7)
],
text_fields=[
Multi2VecField(name="title", weight=0.1)
],
video_fields=[
Multi2VecField(name="trailer", weight=0.2)
],
)
],
# highlight-end
Expand All @@ -1238,19 +1242,23 @@
properties=[
Property(name="title", data_type=DataType.TEXT),
Property(name="poster", data_type=DataType.BLOB),
Property(name="trailer", data_type=DataType.BLOB),
],
vector_config=[
Configure.Vectors.multi2vec_voyageai(
name="title_vector",
# Define the fields to be used for the vectorization - using image_fields, text_fields
# Define the fields to be used for the vectorization - using image_fields, text_fields, video_fields
image_fields=[
Multi2VecField(name="poster", weight=0.9)
Multi2VecField(name="poster", weight=0.7)
],
text_fields=[
Multi2VecField(name="title", weight=0.1)
],
video_fields=[
Multi2VecField(name="trailer", weight=0.2)
],
# Further options
# model="voyage-multimodal-3",
# model="voyage-multimodal-3.5",
# truncation="true", # or "false",
# output_encoding="base64", # or "null"
# base_url="<custom_voyageai_url>"
Expand Down
28 changes: 22 additions & 6 deletions docs/weaviate/model-providers/_includes/provider.vectorizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1350,20 +1350,28 @@ await client.collections.create({
name: 'poster',
dataType: weaviate.configure.dataType.BLOB,
},
{
name: 'trailer',
dataType: weaviate.configure.dataType.BLOB,
},
],
vectorizers: [
weaviate.configure.vectors.multi2VecVoyageAI({
name: "title_vector",
// Define the fields to be used for the vectorization - using imageFields, textFields
// Define the fields to be used for the vectorization - using imageFields, textFields, videoFields
imageFields: [{
name: "poster",
weight: 0.9
weight: 0.7
}],
textFields: [{
name: "title",
weight: 0.1
}],
model: "voyage-multimodal-3",
videoFields: [{
name: "trailer",
weight: 0.2
}],
model: "voyage-multimodal-3.5",
})],
// highlight-end
// Additional parameters not shown
Expand All @@ -1387,21 +1395,29 @@ await client.collections.create({
name: 'poster',
dataType: weaviate.configure.dataType.BLOB,
},
{
name: 'trailer',
dataType: weaviate.configure.dataType.BLOB,
},
],
vectorizers: [
weaviate.configure.vectors.multi2VecVoyageAI({
name: "title_vector",
// Define the fields to be used for the vectorization - using imageFields, textFields
// Define the fields to be used for the vectorization - using imageFields, textFields, videoFields
imageFields: [{
name: "poster",
weight: 0.9
weight: 0.7
}],
textFields: [{
name: "title",
weight: 0.1
}],
videoFields: [{
name: "trailer",
weight: 0.2
}],
// Further options
model: "voyage-multimodal-3",
model: "voyage-multimodal-3.5",
truncate: true, // or false
// outputEncoding: "base64" // or "null"
// baseURL: "<custom_voyageai_url>"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,11 @@ The query below returns the `n` most similar objects to the input image from the
### Available models

- `voyage-multimodal-3` (Default)
- `voyage-multimodal-3.5`

:::info Video support
The `voyage-multimodal-3.5` model supports video embeddings in addition to text and images. Configure `video_fields` (Python) or `videoFields` (TypeScript) to enable video vectorization.
:::

## Further resources

Expand Down
Loading