Get startedGet started for free

Getting set up with Weaviate

This exercise is part of the course

End-to-End RAG with Weaviate

View Course

Exercise instructions

  • Run the code to load the weaviate/agents dataset from Hugging Face and subset the first 200 rows.
  • Create a Weaviate client with the weaviate module and configuration provided; check it works with the .is_ready() and .get_meta() client methods.
  • Create a collection called "Movies", add another TEXT property 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