Skip to content

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Document Semantic Search

A simple Gradio interface for semantic search across multiple PDF documents using a combination of BM25 and vector embeddings to find relevant documents. The script builds a FAISS index on corpus of the uploaded documents, and first uses BM25 to find the top relevant results, then reranks them using cosine similarity to the search query.

Setup

Link to venv docs

Create environment

python3 -m venv venv

To activate the environment

UNIX/MacOS:

source venv/bin/activate

Windows:

venv/Scripts/activate

Install dependencies

If this is your first time running this or the package dependencies have changed, run this command to install all dependencies.

pip install -r requirements.txt

Run

Run the app in reload mode with this command. This will let the app reload automatically when changes are made to the python script.

python main.py

About

No description or website provided.

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages