I have a list of documents, which contain basic sentences. Depending on the semantic similarity to a search query, I want to give each sentence a score. For this purpose, I am using a neural network, which will do exactly that. It takes a query sentence as input, transforms it to a vector and computes the cosine similarity with all the sentences in my database, which represents a similarity score. I want to then sort my results based on that similarity score.
I am therefore looking for a way, to implement my personal scoring function into the App Search Environment. How can I do that?
Thank you for your help!