Semantic Search on OpenAI api

I’m trying to figure out how to interact with a vector database for OpenAI model. I basically want to create a telegram bot that performs semantic search on embedded data from a vector database.

Until now I put everything in the “System” role as a huge paragraph, but I feel that makes it slower and more expensive.

Any ideas? Thanks!

1 Like