This repository uses openai apis to generate question and answers from a web or a file
We will be using openai apis to build a system that can answer questions about a website and a file
This repo is divided into 3 parts:
- Web crawler
- Create embeddings
- Ask Questions
A. Web Crawler
- pip install -r requirements.txt
- Update domain and full url in web_crawl.py
- Run python web_crawl.py
This will save crawled texts into text/ folder
B. Create Embeddings
- Update domain and full url in embeddings.py
- Run python embeddings.py
C. Ask Questions - This is final step after we have completed previous 2 steps
- Update the question in ask_question.py
- Run python ask_question.py
### My tasks
- [ ] Take domain and full url from arguement
- [ ] Input questions from argument
- [ ] Create basic UI for the above