Skip to content

MongoDB .Local NYC 2023 talk on how to rapidly iterate an application and evolve the user experience using Atlas Search

Notifications You must be signed in to change notification settings

graboskyc/AtlasSearchLocalNYC2023

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Atlas Search for NYC .LOCAL 2023

Not using Search, Looking Up By _id

See source code in Results01

Basic Search with Dynamic Index

See source code in Results02 and its default index definition

Refined Index with Scoring and Sorting

See source code in Results03 and its sort index definition

More Like This

See source code in Results04 and its sort index definition

Autocomplete

See source code in Results05 and SearchBarAutocomplete and its autocomplete index definition

Facets

See source code in Results06 and its facet index definition

Less commmon uses for Facets

See source code in Results06 and MovieDetails and its facet index definition

Vector search

As of MongoDB .Local NYC 2023, MongoDB announced a Public Preview of Vector Search. The default data set for movies now distributes a collection which uses OpenAI's ada-002-text embeddings.

To use this feature, in your .env file include the additional OPENAI environment variables. Note that the app can use the native OpenAI API (only use OPENAIAPIKEY) or Azure's (use OPENAIAPIKEY and OPENAIDEPLOYMENT and OPENAIENDPOINT)

Recording

<iframe width="560" height="315" src="https://www.youtube.com/embed/Xu_AZlBp07U" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>