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.
To run the code locally, please follow these instructions:
- Clone this repository:
git clone https://github.com/FzS92/SemanticSearch
cd SemanticSearch
- Install the required dependencies:
pip install -r requirements.txt
- Run the application:
python app.py
- Open the web interface and specify your desired search mode, whether it be paragraph or sentence, and enjoy the search!
You can access the web interface and try out by visiting the following link:
HuggingFace Space: Semantic Search