cd /path/to/your/directory
git clone https://github.com/Corleone-Yang/RAG_based_Rehabilitation_System.git
Mac:
python3.9.12 -m venv .venv
source venv/bin/activate
Windows:
python3.9.12 -m venv .venv
.\venv\Scripts\activate
pip install -r requirements.txt
OPENAI_API_KEY='your_openai_key'
flask run
a. open Your Localhost Address, the default port is Port 5000.
For Doctor's Notes Upload, You should upload the important documents here. For Daily Conditions Submit, You can submit your daily conditions here. For Suggestions Generate, You can ask questions.
- Here you can check the memory record and clean all memory.
- You can also check the indexing result for the query in vector database. This list contains the locations of the five answers that are closest to our question.
Here you can get the response form the RAG system and OpenAI prompt generation. Off courese you can test different LLMs like llama3 from huggingface or LangChain API.