A Wikipedia Question Answering Bot that allows users to input a Wikipedia article title, ask questions about its content, and receive AI-generated answers. The bot uses LangChain, FAISS, and Hugging Face Transformers for efficient document retrieval and QA processing.
- Scrapes Wikipedia articles based on user-input titles and language selection.
- Uses FAISS for efficient document retrieval.
- Employs Hugging Face's Transformers for question answering.
- Deployed using Streamlit with a Flask backend.
git clone https://github.com/yourusername/WikiBot.git
cd WikiBotconda create --name wikibot python=3.11
conda activate wikibotpip install -r requirements.txtstreamlit run app.py- Wikipedia Title: Enter the title of the Wikipedia page to scrape.
- Language Selection: Choose between English (
en) or Arabic (ar). - Ask a Question: Once the article is scraped, input a question related to its content.
WikiBot/
│── app.py # Streamlit UI
│── controller.py # Main Controller
│── requirements.txt # Dependencies
│── LICENSE
|── README.md
|
├── utils/
│ ├── qa_chain.py # Question Answering Pipeline
│ ├── search.py # FAISS Document Retrieval
│ ├── wiki_scrap.py # Wikipedia Scraping Utility
| |── __init__.py
This project is licensed under the Apache License. See the LICENSE file for details.