Skip to content

redis-developer/hybrid-js

Repository files navigation

Fusion Demo

Contents

  1. Summary
  2. Architecture
  3. Features
  4. Prerequisites
  5. Installation
  6. Usage

Summary

This is a Javascript-based demo of various rank fusion algorithms.

Architecture

architecture

Features

  • Implementation of the following rank fusion algorithms in Typescript
    • Borda Count Method
    • Distributed-Based Score Fusion (DBSF)
    • Reciprocal Rank Fusion (RRF)
    • Relative Score Fusion (RSF)
  • Nvidia NIM-based embeddings
  • Redis Software vector similarity search
  • Extraction of small test set (10 queries/10 passages each) from MS MARCO TREC-Deep-Learning data set

Prerequisites

  • Nvidia GPU
  • Nvidia AGC API key
  • Docker
  • Docker Compose
  • nodejs
  • npm
  • tsc

Installation

git clone git@github.com:redis-developer/hybrid-js.git && cd hybrid-js && npm install
  • Rename .env_sample to .env and replace the placeholder in API_KEY with your key.

Usage

Environment Start

docker compose up -d

Environment Stop

docker compose down

App Build

npm run build

App Run

npm start