Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yjg30737/pyqt-llamaindex
Example of use llama-index in Python desktop application
https://github.com/yjg30737/pyqt-llamaindex
chatbot llama-index openai pyqt pyqt-examples pyqt5 pyqt5-desktop-application pyqt5-examples pyqt5-gui python3 qt
Last synced: about 1 month ago
JSON representation
Example of use llama-index in Python desktop application
- Host: GitHub
- URL: https://github.com/yjg30737/pyqt-llamaindex
- Owner: yjg30737
- License: mit
- Created: 2023-06-10T23:43:36.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-05T01:24:04.000Z (10 months ago)
- Last Synced: 2024-12-27T05:30:15.041Z (about 1 month ago)
- Topics: chatbot, llama-index, openai, pyqt, pyqt-examples, pyqt5, pyqt5-desktop-application, pyqt5-examples, pyqt5-gui, python3, qt
- Language: Python
- Homepage:
- Size: 33.2 KB
- Stars: 8
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pyqt-llamaindex
Example of use llama-index in Python desktop applicationWith 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.
## Requirements
* PyQt5 >= 5.14
* openai
* llama-index## How to Run
1. git clone ~
2. cd pyqt-llamaindex
3. pip install -r requirements.txt
4. cd pyqt_llamaindex
5. python main.py
6. write your openai api key to the top of the screen and clicking "use" button
7. pressing "set directory" button to import directory which contains text files
8. chat with your personal chatbot## Preview
![image](https://github.com/yjg30737/pyqt-llamaindex/assets/55078043/67e17c9b-9a49-4f3b-8c3d-05d7c85941fb)
## See Also
* pyqt-openai