Skip to content

Instantly share code, notes, and snippets.

View MustaphaU's full-sized avatar

Mustapha Unubi Momoh MustaphaU

View GitHub Profile
@MustaphaU
MustaphaU / local_semantic_search.md
Last active June 5, 2025 00:39 — forked from dtaivpp/local_semantic_search.md
Shows how to use semantic search locally on OpenSearch using Distillibert.

Local Semantic Search in OpenSearch!

If you'd like to watch this demo through it's available on YouTube or if you prefer reading there is a walkthrough on my blog.

Cluster settings for Amazon OpenSearch and Locally running

PUT /_cluster/settings
{
    "persistent": {
        "plugins.ml_commons.only_run_on_ml_node": false,
package vw;
import java.io.*;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.stream.Collectors;