Getting set up with Weaviate
This exercise is part of the course
End-to-End RAG with Weaviate
Exercise instructions
- Run the code to load the
weaviate/agentsdataset from Hugging Face and subset the first200rows. - Create a Weaviate client with the
weaviatemodule and configuration provided; check it works with the.is_ready()and.get_meta()client methods. - Create a collection called
"Movies", add anotherTEXTproperty called"title", and specify an OpenAI embedding model with the.text2vec_openai()method. - Get the collection, and complete the loop to preprocess each row and add it to the collection; close the client connection.
Note: If you’re running DataLab in Restricted Mode, this exercise isn’t supported yet. We’re actively working on making it available in the future.
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
Start Exercise