Sentence Similarity Search

I would like to have the ability to type in a sentence (or perhaps a few sentences), and return the sentences from my content that are most similar.

I have looked at the tutorial on semantic search here: Semantic textual search with vector embeddings

I see that it performs embedding on both the title and content. However I guess in my case I would need to embed all the sentences individually? I’m wondering if there is any documentation or tutorials on this? Thanks!


There are some videos on youtube that you can follow. For example this one Sentence Similarity With Sentence-Transformers in Python - YouTube