Example of using LLamaIndex in Python desktop app
Project description
pyqt-llamaindex
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.
Requirements
-
PyQt5 >= 5.14
-
openai
-
llama-index
How to Run
-
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
Preview
See Also
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pyqt-llamaindex-0.0.1.tar.gz
.
File metadata
- Download URL: pyqt-llamaindex-0.0.1.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd7bb99b94e1294ea61da11813f4dd1f62a0c2df2ab2321ec668f9ee11b54027 |
|
MD5 | 7052f73d708867164e5fd72a60095994 |
|
BLAKE2b-256 | d290174966d7659008bc59bb7ec88797c675dd1b64e2037bdb4c4c154e6b0a95 |
File details
Details for the file pyqt_llamaindex-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: pyqt_llamaindex-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4dedb6277915359a14cc4c63b036d99e6cd05b21f63bdf728903bfa86942093a |
|
MD5 | ebd2974c9a81bc0c778c575ce2e16c64 |
|
BLAKE2b-256 | 58c8b68e7e5fe15d485c39b9b265d4f66b99d3a75c0d7982db9b10f4ba3b1f81 |