Skip to content

Corleone-Yang/RAG_based_Rehabilitation_System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RAG_based_Rehabilitation_System

1. How to setup before running.

a. Pull the respitory

cd /path/to/your/directory  
git clone https://github.com/Corleone-Yang/RAG_based_Rehabilitation_System.git

b. Create the environment and activate

Mac:

python3.9.12 -m venv .venv
source venv/bin/activate

Windows:

python3.9.12 -m venv .venv
.\venv\Scripts\activate

c. Download the requirements

pip install -r requirements.txt

d. set .env

OPENAI_API_KEY='your_openai_key'

e. run

flask run

2. How to use this app

a. open Your Localhost Address, the default port is Port 5000.

b. The HomePage

Screenshot 2024-07-08 at 15 34 01

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.

c. The Dashboard

Screenshot 2024-07-08 at 15 45 46

  • 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.

d. The Result

Screenshot 2024-07-08 at 15 47 45 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published