Skip to content

Commit

Permalink
fix readme example
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonalaird committed Feb 23, 2024
1 parent 0441945 commit 47ea656
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.'}]
```

Expand Down

0 comments on commit 47ea656

Please sign in to comment.