-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Academy/ts multimodal #2825
base: main
Are you sure you want to change the base?
Academy/ts multimodal #2825
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Orca Security Scan Summary
Status | Check | Issues by priority | |
---|---|---|---|
Passed | Infrastructure as Code | 0 0 0 0 | View in Orca |
Passed | Secrets | 0 0 0 0 | View in Orca |
Passed | Vulnerabilities | 0 0 0 0 | View in Orca |
Great to see you again! Thanks for the contribution. |
developers/academy/js/starter_multimodal_data/_snippets/101_connect.mts
Outdated
Show resolved
Hide resolved
|
||
If you do not specify the vector yourself, Weaviate will use a specified vectorizer to generate vector embeddings from your data. | ||
|
||
In this code example, we specify the `multi2vec-cohere` module. This module uses the Cohere Multimodal Embed 3 model to generate vector embeddings from the text and image data. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is true now - but may not be in the future.
I would highlight that this is the current default model. Tbh I think it would be best to explicitly specify the model in the vectorizer.
(In the equivalent Python one, the model is specified in the Docker file due to the nature of the CLIP integration.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah makes sense, will do!
developers/academy/js/starter_multimodal_data/102_mm_collections/20_create_collection.mdx
Outdated
Show resolved
Hide resolved
developers/academy/js/starter_multimodal_data/102_mm_collections/20_create_collection.mdx
Outdated
Show resolved
Hide resolved
developers/academy/js/starter_multimodal_data/_snippets/102_collection.mts
Show resolved
Hide resolved
developers/academy/js/starter_multimodal_data/_snippets/102_collection.mts
Outdated
Show resolved
Hide resolved
developers/academy/js/starter_multimodal_data/_snippets/102_collection.mts
Outdated
Show resolved
Hide resolved
developers/academy/js/starter_multimodal_data/102_mm_collections/30_import_data.mdx
Outdated
Show resolved
Hide resolved
developers/academy/js/starter_multimodal_data/_snippets/102_collection.mts
Show resolved
Hide resolved
|
||
### <i class="fa-solid fa-chalkboard"></i> Error handling | ||
|
||
If you have any errors in your bulk insertion, you want to know something went wrong. That way you can decide how to handle them, such as by raising an exception. In this example, we simply print out that there was an error with the import. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this what we want to do? It may be worth talking to someone like Tommy about this.
It looks like if we insert 1000 objects and 1 fails this will throw an error. I'm not sure whether this is the kind of pattern we want users to use.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, i've changed this to 20 objects but yes, we're working on getting an actual batcher to work around this.
developers/academy/js/starter_multimodal_data/102_mm_collections/30_import_data.mdx
Outdated
Show resolved
Hide resolved
developers/academy/js/starter_multimodal_data/103_mm_searches/10_multimodal.mdx
Outdated
Show resolved
Hide resolved
developers/academy/js/starter_multimodal_data/103_mm_searches/10_multimodal.mdx
Show resolved
Hide resolved
developers/academy/js/starter_multimodal_data/_snippets/103_searches.mts
Outdated
Show resolved
Hide resolved
developers/academy/js/starter_multimodal_data/103_mm_searches/30_filters.mdx
Outdated
Show resolved
Hide resolved
developers/academy/js/starter_multimodal_data/900_next_steps.mdx
Outdated
Show resolved
Hide resolved
I'll add the model name, however, it will error out as the type is currently missing. |
What's being changed:
I'm adding a new academy course on working with multimodal data with Weaviate and the typescript client.
Type of change:
How Has This Been Tested?