💻Image Search For Developers

Introduction To Image Search For Developers

Setup

from vectorai import ViClient
vi = ViClient()

You can search images using the endpoint when encoding as below.

search_results = vi_client.search(
    collection_name,
    text_encoder.encode('samsung phone'), 
    'name_vector_',
    page_size=5, 
    page=1
)

You can search the images using the following

vi_client.show_json(
    search_results,
    selected_fields=['_id', 'name', 'sku'],
    image_fields=['image_url'],
    image_width=100
)

Last updated