This project is a simple question and answering app that utilizes state-of-the-art language models and tools such as OpenAI, Langchain, Llama_index, and Gradio. The app is designed to answer user’s questions based on a previously given document. With its advanced natural language processing capabilities, the app provides accurate and relevant answers to user queries
Before running this script make sure that you have the environment setup. I have tested it python3.10. This script will use OpenAI API Key. So make sure you have the API Key ready and set it in the environment. The full Windows environment snapshot is shared in full_environment_windows.txt file. For linux/Ubuntu please use full_environment.txt file. If you encounter pip failing to resolve dependancy then edit the requirement file by removing specific version. Packages: gradio, langchain, llama-index, tiktoken, openai, pypdf
You can run this following command to install all the required packages.
pip install -r requirements.txt
Make sure that you have OpenAI API key as a environment variable named as OPENAI_API_KEY
$ python -m main.py
KM Mohsin (mohsin.eee@gmail.com)