Home

4. 🔍 Text-to-image search

✨ With the Tenyks SDK, you can perform similarity search based on vector embeddings.

  • 🔮 By default, Tenyks magically generates the embeddings for your dataset, but you can bring your own embeddings (see custom embeddings for more details).
  • Learn more about embeddings
  • Learn more about multimodal search

Text to Image search: You can search for images that match the provided text.

Example #1: Given the text "construction site", let's search for images that match this description

search_result = dataset.search_images(  
    sort_by="vector_text(construction site)",  
)
display_images(search_result, n_images_to_show=6)

Example #2: Given the text "white truck", let's search for images that match this description

search_result = dataset.search_images(  
    sort_by="vector_text(white truck)",  
)
display_images(search_result, n_images_to_show=6)