From 47ea6565670f1da5774123d3eef936900dfd4dcd Mon Sep 17 00:00:00 2001 From: Dillon Laird Date: Fri, 23 Feb 2024 13:38:01 -0800 Subject: [PATCH] fix readme example --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3a6e88b7..4c5a0d3c 100644 --- a/README.md +++ b/README.md @@ -41,8 +41,8 @@ This will use the prompt you passed, "Describe this image.", and the LMM to crea You can now create an index on the descriptions column and search over it to find images that match your query. ```python -ds = ds.create_index("descriptions", top_k=1) -ds.search("A yellow house.") +ds = ds.build_index("descriptions") +ds.search("A yellow house.", top_k=1) >>> [{'image_paths': 'image1.png', 'image_id': 1, 'descriptions': 'A yellow house with a green lawn.'}] ```