This is a RAG chatbot built with llamaindex, with an OpenAI compative API written in Flask. There is nothing special about it but the API was written to make it easy to use with Obsidian's Text Generator plugin.
Note: No encryption has been implemented in the API. The chat_server.py
server script is meant to serve the API on localhost on a private network, it is not meant to serve the API on the web (use at your own risk).
How to use:
create_db.py
and chat_server.py
and adjust the configuration (notably: API keys)create_db.py
test_db.ipynb
chat_server.py
test_db.ipynb
See here for more detailed instructions.