pip install -r requirements.txt
NOTE:
- Please write the API key in
api_key.txt
before running the code. And the number of keys inapi_key.txt
should be equal tonum_process
. - Replace the
openai_url
inscripts/ccks_round1.sh
as needed. Get_ccks_demo.py
uses knn to find representative questions and construct demostrations forstructllm/prompt_/ccks_round1.json
.
>> bash scripts/ccks_round1.sh
The file submited to TianChi is output\ccks_round1\TeamName_result.txt
, remember to replace the TeamName
with true team name.