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!

Hi, it would be awesome if you would share more info. How the scenario is working now and how it should exactly work? You can add also screenshots.