Tutorials#

These tutorials demonstrate how to use the Visual Search and QA reference implementation.

  • Use your own dataset for searching

  • Filtered search

  • Configurable parameters

Tutorial 1: Use your own dataset for searching#

In this tutorial, you will learn how to use your own dataset for searching.

Learning objectives

  • By the end of this tutorial, you will be able to ingest your own dataset to vector DB and conduct search and QA based on them.

Step 1: Put the dataset under designated host directory#

  1. Check env.sh which is sourced before executing docker compose, find HOST_DATA_PATH, which should be pre-created according to Get Started.

    export HOST_DATA_PATH="$HOME/data"
    
  2. Put your dataset (including images and videos) under this directory

Step 2: ingest the dataset to vector DB#

  1. Deploy the application

  2. Go to the web UI, fill in file directory on host with the absolute path to your dataset directory, and click UpdateDB

Summary

In this tutorial, you learned how to use your own dataset for searching.

Tutorial 3: Configurable parameters#

In this tutorial, you will learn how to adjust the configuarable parameters for the application

Learning objectives

  • By the end of this tutorial, you will be able to know which parameters to modify when needed

Configurable parameters#

  • The number of results shown per row in UI layout: default as 5. Change it by exporting this environment variable and re-deploy the application

    export  SHOW_RESULT_PER_ROW=10
    
  • Deduplicate switch and threshold: deduplicate switch decides whether or not to enable deduplication for similar search results. Note that this function currently supports video only. Once enabled, video search results that are the same video and start within the interval of threshold would be deduplicated. Only one remains. For example:

Search without deduplicate

Figure 1: Search without deduplication

Search with deduplicate

Figure 2: Search with deduplication

Without deduplication enabled, the first row of results are from the same video, and the time difference among them are less than 5 seconds. Therefore, when deduplication is ticked, search button returns only one result from that video.

Learn More#

  • Deploy the application with the Get Started.

  • Understand the components, services, architecture, and data flow, in the Overview.