Basic Semantic Search

Learn how to build an ecommerce retail search in minutes

Furniture Search

In this tutorial, you'll step into familiar territory, building a search index to enable semantic search for a set of furniture products. Specifically, we will be loading and searching furniture listings crawled from various sellers on Etsy.

By the end of this tutorial, you will have a furniture collection available via an API, using semantic search to enhance the discovery experience in your application.

You will:

  1. Configure your OpenAI Model key in the Vantage platform to allow the platform to embed the furniture data.
  2. Create a collection to store the data, making it available for search.
  3. Upload a furniture dataset.
  4. Search the collection from the console.
  5. (Optional) Search the collection programatically.

Steps

Prerequisites

Before you begin, you will need:

  1. Vantage Account:
    Sign up for a Vantage account through our console.
  2. OpenAI Account and API Key:
    Generate or retrieve your OpenAI keys on the API Keys page on the OpenAI platform.
  3. Furniture Sample Data File:
    Download the data file, which contains approximately 5k listings with images and descriptions.

Step 1: Configure Your LLM Provider API Key

Step 1

Skip this step if you already have a key.

Log in to the console and navigate to API Keys.

  1. Click + Add API Key in the Model API Keys to create a new Model API Key.
  2. Input the key from OpenAI.
  3. Click Add Key.

Create LLM API Key

Step 2: Create a New Collection

Step 2

🚧

Step 1 and 2 may be optional if this is your first account

  1. In the console, navigate to the collections page.
  2. Create a new Collection.
  3. Name your new collection "Furniture Tutorial".
  4. Ensure to set the Collection ID to furniture-tutorial. We will use this when we search.
  5. For Model, keep OpenAI as default and text-embedding-3-large.
  6. Ensure the Model API Key from the previous step is selected.
  7. Click on Create Collection.

Create Collection

Step 3: Upload Furniture Dataset

Step 3

Continuing from the previous step, you should see the upload screen.

  1. Click the upload icon, Click to upload and select the provided furniture data file to upload it.
  2. After uploading completes, click Finish

Upload Data

  1. Refresh the Data Files list button.
  2. Review the log once the file has been processed. Your data is now indexed and included in the Vantage platform search!
  3. Wait for the collection to be online, meaning your data is ready for search.
  4. When the collection is online, proceed to Query Collection to search your data.

File Processed

👍

Ensure your collection status indicates Online before proceeding.

Step 4: Search the Collection

Step 4

Time to search your collection!

  1. Enter modern sleek armchair for a small space into the text box.
  2. Execute your first Vantage semantic query. You are about to search via AI embeddings for the most relevant semantic results based on your query's intent and understanding.
  3. Review the results.

Search Collection

The IDs for the furniture dataset don't really provide much context about the result. You may want to copy and paste the ID into a web browser to evaluate the results. Data about each product, supporting a different tutorial, is located at https://furniture-json.demo.vanta.ge/<<<<id>>>>.json.

To get the top result, 50777d55cfc98140744d0caea184d594, visit 50777d55cfc98140744d0caea184d594.json

[Optional] Step 5: Search the Collection programatically

To search your collection programatically, you can use one of the Vantage SDK libraries, for more details you can check our documentation page.

Congratulations!

You have completed the basic semantic search tutorial. You're now prepared to enrich your ecommerce experience with semantic search capabilities, powered by the Vantage Platform.