Vector search on a specific field

This example pipeline demonstrates how to use MongoDB - Atlas Vector Search Snap to perform an ANN (approximate nearest neighbor) search on a vector in the specified field.

  1. Configure the Edit JSON field in the JSON Generator Snap with the prompt List movies.

    JSON Generator configuration

  2. Configure the Azure OpenAI Embedder Snap to create a vector embedding for the list of movies.

    Azure OpenAI Embedder configuration


    Azure OpenAI Embedder output

  3. Configure the Mapper Snap to pass the vector embedding to the MongoDB - Atlas Vector Search Snap.

    Mapper Snap configuration

  4. Configure the MongoDB - Atlas Vector Search Snap to run a search query on 10,000 nearest neighbor records for a single-matched record with a similar plot_embedding vector field.

    MongoDB Atlas Vector Search Snap configuration

    On validation, one record is populated with a similar plot-embedding vector field.


    MongoDB Atlas Vector Search output

To reuse the example pipelines:
  1. Download and import the SLP file into your Environment.
  2. Configure Snap accounts.
  3. Provide Pipeline parameters, if any.