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.
-
Configure the Edit JSON field in the JSON Generator Snap with the prompt List movies.
-
Configure the Azure OpenAI Embedder Snap to create a vector embedding for the list of movies.
-
Configure the Mapper Snap to pass the vector embedding to the MongoDB - Atlas Vector Search Snap.
-
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.
On validation, one record is populated with a similar plot-embedding vector field.
To reuse the example pipelines:
- Download and import the SLP file into your Environment.
- Configure Snap accounts.
- Provide Pipeline parameters, if any.