Skip to content

Instantly share code, notes, and snippets.

View nabsabraham's full-sized avatar
🔨

nabila nabsabraham

🔨
View GitHub Profile

Semantic Search with OpenSearch and Cohere

Cluster Settings:

PUT /_cluster/settings
{
    "persistent": {
        "plugins.ml_commons.allow_registering_model_via_url": true,
        "plugins.ml_commons.only_run_on_ml_node": false,
        "plugins.ml_commons.connector_access_control_enabled": true,
import numbers
import random
from torchvision.transforms import functional as F
try:
import accimage
except ImportError:
accimage = None
from PIL import Image