Welcome to the Conversational Intelligence project, where you can have interactive chats with your document!
- Python version 3.8, 3.9, or 3.10
-
Install the required libraries:
pip install openai llama-index pypdf sentence_transformers streamlit
-
Open
engine.pyand on line 6, replaceYOUR_OPENAI_API_KEYwith your actual OpenAI API key. -
To chat with a new document:
- First, delete the
index_datafolder. - Upload your desired file into the
datafolder. - Run the app again.
Anyone with a new account associated with a new number at OpenAI will receive a $5 free credit. If you're unfamiliar with how to get an API key, watch this tutorial video.
-
Once everything is set up, run the app using:
streamlit run app.py