This repository contains an implementation of passage retrieval for Harry Potter and the Sorcerer's Stone using lexical (TF-IDF) and semantic (MiniLM, FAISS) retrieval methods. The system allows users to input a query and retrieve the most relevant passages from the book.
Search Engine App (Streamlit) - https://sleek-ha.streamlit.app/
pip install -r requirements.txt
python -m spacy download en_core_web_sm
The retrieval approaches can be tested by running:
python Sleek/lexical_retrieval.pypython Sleek/semantic_search.pyEvaluation pipeline can be found in notebook 'results_open_question.ipynb', or run:
python Sleek/evaluation.pyhttps://www.pinecone.io/learn/offline-evaluation/#Metrics-in-Information-Retrieval https://faiss.ai/cpp_api/struct/structfaiss_1_1IndexIVF.html
