This project is a Question & Answer system implemented using DistilBERT for text representation and Faiss (Facebook AI Similarity Search) for efficient similarity search in a vector database. The system is designed to provide accurate and relevant answers to user queries by searching through a large collection of documents.
DistilBERT-based Text Representation: Utilizes the DistilBERT model to convert questions and documents into dense vector representations.
Faiss Vector Database: Stores the vector representations of the documents for fast similarity search.
Efficient Retrieval: Finds the most relevant documents to a given question by performing efficient similarity searches in the Faiss vector database.
git clone https://github.com/VuBacktracking/bert-faiss-qa-sytem.gitpip install -r requirements.txtpython3 trainer.pyNote: You can check my model in the link: https://huggingface.co/vubacktracking/distilbert-base-uncased-finetuned-squad2
python3 faiss_index.py
streamlit run app.pyOpen your web browser and navigate to http://localhost:8501/ to use the web-based Q&A system.
BERT Embeddings:
Faiss Indexing:
Query Processing:
Answer Extraction: