Skip to content

FzS92/SemanticSearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MITLicense Python application Python package Semgrep

Semantic Search

This repository contains a Python code that utilizes semantic search. It compares the encoded representation of a query with the encoded representation of each sentence or paragraph in a given context and selects the top k most similar results.

Installation

To run the code locally, please follow these instructions:

  1. Clone this repository:
git clone https://github.com/FzS92/SemanticSearch
cd SemanticSearch
  1. Install the required dependencies:
pip install -r requirements.txt

Usage

  1. Run the application:
python app.py
  1. Open the web interface and specify your desired search mode, whether it be paragraph or sentence, and enjoy the search!

App Screenshot

HuggingFace Space

You can access the web interface and try out by visiting the following link:

HuggingFace Space: Semantic Search