Skip to content
 
 

Repository files navigation

Team5_NLP_Upstage

[25-2 NLP] Term Project. Enhancing a QA performance of LLM (Solar Pro 2) using RAG and Prompt engineering.

✨Performance for 5_final.csv


  • EWHA: 100% (25/25)
  • MMLU: 76% (19/25)
  • Total: 88% (44/50)

🛠️ Setting


  1. Clone this repository to your local.
    git clone https://github.com/juminsuh/Team5_NLP_Upstage.git
    
  2. Please download faiss_vectorstore folder from google drive. (😂 It might take a few minutes due to it's large size (i.e., 1.1GB))
  3. Unzip faiss_vectorstore.
  4. Make sure to set the faiss_vectorstore directory such as ➡️ ./Team5_NLP_Upstage/faiss_vectorstore
  5. Make .env file and write UPSTAGE_API_KEY="your_upstage_api_key" to .env file. (The directory of your .env file is ./Team5_NLP_Upstage/.env)

🔗 Requirements


  1. Create your virual enviroment and activate it
conda create -n team5 python=3.10 -y # create
conda activate team5 # activate
  1. Install
pip install -r requirements.txt

🥳 You are ready to run the code!

🔥 Implement run.py


python run.py --data_path ./datasets/testset.csv

➡️ If you want to evaluate other testset, then just change the value of --data_path.

python run.py --data_path <your_testsets_directory>

✅ You can check total score by running the code below (You should modify the directory of score.py appropriately before you run the code):

python score.py

📚 Source


We utilized textbook and QA datasets from hugging face.

About

[25-2 NLP] Term Project: Enhancing a QA performance of LLM (Solar Pro 2) using RAG and Prompt engineering

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages