HackerTrans
TopNewTrendsCommentsPastAskShowJobs

niftyjester

no profile record

comments

niftyjester
·قبل 3 سنوات·discuss
This is going to be only marginally helpful as I don't have references but I think I implemented this in ElasticSearch.

You can do approximate KNN search with ES by adding a setting on the index that enables KNN and then creating mappings for your embedding objects that defines their vector length. Then index your data as you normally would plus embeddings.

Once you have those in place you can construct your query and include the embedding similarity in how the query gets scored. When a query is submitted you embed it and pass into your ES query the embedding as well as the original query. ES will combine all of these elements together to score the results.