itay2341/express-elasticsearch

Vector similarity search

0

stars

0

commits

JavaScript

primary language

Dec 8, 2025

updated

README

ES Semantic search demo

This project consists of an Elasticsearch service and a Node.js Express API. The Express API uses an ONNX embeddings model for processing.

Prerequisites

  • Docker
  • Docker Compose
  • Node.js
  • Python 3.11

Setup

1. Download the ONNX Embeddings Model

First, run the download_model.py script to download the ONNX embeddings model. This step is necessary for the Express API to function correctly.

python download_model.py

2. Build and Run the Docker Containers

Use Docker Compose to build and run the containers for Elasticsearch and the Express API.

docker-compose up --build

3. Access the Services

Express API

The Express API provides endpoints to interact with the ONNX embeddings model and Elasticsearch.

Endpoints

  • POST /enter-data: Indexes data into Elasticsearch.
  • POST /vector-search: Performs a vector similarity search using the ONNX model.
  • POST /text-search: Performs a text-based fuzzy search on ProductName and Description.

itay2341/express-elasticsearch

Vector similarity search

0

stars

0

commits

JavaScript

primary language

Dec 8, 2025

updated

README

ES Semantic search demo

This project consists of an Elasticsearch service and a Node.js Express API. The Express API uses an ONNX embeddings model for processing.

Prerequisites

  • Docker
  • Docker Compose
  • Node.js
  • Python 3.11

Setup

1. Download the ONNX Embeddings Model

First, run the download_model.py script to download the ONNX embeddings model. This step is necessary for the Express API to function correctly.

python download_model.py

2. Build and Run the Docker Containers

Use Docker Compose to build and run the containers for Elasticsearch and the Express API.

docker-compose up --build

3. Access the Services

Express API

The Express API provides endpoints to interact with the ONNX embeddings model and Elasticsearch.

Endpoints

  • POST /enter-data: Indexes data into Elasticsearch.
  • POST /vector-search: Performs a vector similarity search using the ONNX model.
  • POST /text-search: Performs a text-based fuzzy search on ProductName and Description.

Languages

JavaScript

88.7%

Python

8.6%

Dockerfile

2.7%