Example of use llama-index in Python desktop application
With combination of llama-index and openai, you can pretty much make your personal chatbot, by your input.
Currently this package is only supporting txt files(i don't know about other file type such as .doc works) in the directory. If you want to feed the chatbot to respond what you want to get answer, put txt file inside the "example" directory in this repo and read the instruction below("How to Run" section) to use it. Of course, you can use your own directory other than the directory i mentioned earlier. Remember, the directory has to contain at least one text file.
By default, example folder contains yjg30737.txt and pyqt-openai.txt. It was used for testing so feel free to remove it if you want.
- PyQt5 >= 5.14
- openai
- llama-index
- git clone ~
- cd pyqt-llamaindex
- pip install -r requirements.txt
- cd pyqt_llamaindex
- python main.py
- write your openai api key to the top of the screen and clicking "use" button
- pressing "set directory" button to import directory which contains text files
- chat with your personal chatbot