I learned how to use embeddings by building semantic search for the Bhagavad Gita. I simply saved the embeddings for all 700 verses into a big file which is stored in a Lambda function, and compared against incoming queries with a single query to OpenAI's embedding endpoint.
Shameless plug in case anyone wants to test it out - https://gita.pub
Shameless plug in case anyone wants to test it out - https://gita.pub