Create a RAG from any data source (docx, txt, etc) and use it as a FAQ chatbot without answering out of context answer and streaming
Provide documents, get answers.
- Use Python 3.9
- Setup Ollama with llama 2 7b-chat or any other model from Ollama (You will have to make changes in query.py)
- pip install -r requirements.txt
- Keep files in data/Docx or change the path in create_data.py
- First run create_data.py
python create_data.py
- Second run query.py (It takes string in command line argument as input)
python query.py "What is Love"