๐๏ธ ๐ Semantic Search
What is semantic search?
๐๏ธ ๐ What Are Vectors?
Simply put, a vector is a list of numbers. For example, a vector of length 3 could be [1, 2, 3]. A vector of length 5 could be [1, 2, 3, 4, 5]. A vector of length 100 could be [1, 2, 3, 4, 5, ..., 100]. The length of a vector is the number of elements it contains.
๐๏ธ ๐ Implementing Vector Search
There are two components that you will need to do to implement vector search into your application.
๐๏ธ ๐ Create embeddings
We'll be using a fake dataset of markdown documents for a fake JavaScript library called FancyWidget.js. This set of documents can be found in the workshopassets folder of the demo repo.
๐๏ธ ๐ Create Vector Search indexes
To start using Vector Search, you must configure another search index on your database.
๐๏ธ ๐ Update API routes
We're now ready to implement changes to our API route in order to utilize Vector Search with our new embeddings.