What this thread does
Do first: Install pip install -U "weaviate-client[agents]" and connect to an existing Weaviate Cloud instance.
Short answer
Choose automatic vectorization for text queries. For precomputed embeddings, use the separate self-provided-vector route.
What to do
| Step | Python value / action |
|---|---|
| Connect | weaviate.connect_to_weaviate_cloud(cluster_url=..., auth_credentials=...); connection inputs come from WEAVIATE_URL and WEAVIATE_API_KEY |
| Create | client.collections.create(name="Movie", vector_config=Configure.Vectors.text2vec_weaviate()); import Configure from weaviate.classes.config |
| Import | Objects have title, description, genre; the quickstart adds three objects with movies.data.ingest(data_objects) |
| Retrieve | movies = client.collections.use("Movie"); response = movies.query.near_text(query="sci-fi", limit=2) |
| Inspect | Iterate response.objects, then read obj.properties |
| Close | Use the connection as a context manager, or call client.close() |
| Existing embeddings | Configure.Vectors.self_provided(); import each object's properties and vector through DataObject from weaviate.classes.data; query with query.near_vector(near_vector=..., limit=2) |
The Cloud client configures gRPC from the REST endpoint automatically.
Limits and open questions
no vectorizer found for class "Movie" means a text query reached a collection without a vectorizer: recreate with a vectorizer, or supply an embedding through near_vector. Con004: The connection to Weaviate was not closed properly. calls for closing the client.
The snippets target the latest client and database; the guide supplies no Python version pin. This is the Cloud route. The example vectors do not establish a universal embedding dimension.
Not for: Chroma in-memory Python collections or Weaviate self-hosted setup.
Sources
- Weaviate Cloud quickstart, Weaviate.
Checked
2026-11-16; read Weaviate Cloud quickstart; no command was run.
Started from a post by @Weaviate, packaged by the editor. Original post