From f983732164c2ff1272c312e453a935b1a4c51525 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20=C5=81ukawski?= Date: Tue, 3 Dec 2024 13:50:05 +0100 Subject: [PATCH] Adjust the tutorial to the example --- .../database-tutorials/automate-filtering-with-llms.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qdrant-landing/content/documentation/database-tutorials/automate-filtering-with-llms.md b/qdrant-landing/content/documentation/database-tutorials/automate-filtering-with-llms.md index 4b66db6ea..3a7b6dfc2 100644 --- a/qdrant-landing/content/documentation/database-tutorials/automate-filtering-with-llms.md +++ b/qdrant-landing/content/documentation/database-tutorials/automate-filtering-with-llms.md @@ -77,6 +77,8 @@ A decorated client slightly modifies the original API, so you can pass the `resp of Qdrant filters, it should be a `Filter` model: ```python +from qdrant_client import models + qdrant_filter = anthropic_client.messages.create( model="claude-3-5-sonnet-latest", response_model=models.Filter, @@ -136,7 +138,7 @@ to automatically determine the fields that can be used for filtering. Here is ho from qdrant_client import QdrantClient client = QdrantClient("http://localhost:6333") -collection_info = client.get_collection_info(collection_name="my_collection") +collection_info = client.get_collection_(collection_name="test_filter") indexes = collection_info.payload_schema print(indexes) ```