├── .gitattributes ├── .gitignore ├── README.md ├── evaluation.py ├── example_data ├── dataset_description-v3.md └── dev_data.jsonl.bz2 ├── image ├── API_extractor.png ├── Framework.png └── web_retriever.png ├── main.py ├── models ├── README.md ├── load_model.py ├── mock_api │ ├── api.py │ ├── data │ │ └── company_name.dict │ ├── prompts.py │ ├── pycragapi.py │ └── tools │ │ ├── financetools.py │ │ ├── generaltools.py │ │ ├── movietools.py │ │ ├── musictools.py │ │ └── sportstools.py ├── model.py ├── retrieve │ ├── build_vector_db.py │ ├── build_vector_db_task3.py │ └── retriever.py └── router │ └── router.py ├── prompts └── templates.py ├── requirements.txt └── tokenizer ├── README.md ├── special_tokens_map.json ├── tokenizer.json ├── tokenizer.model └── tokenizer_config.json /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/USTCAGI/CRAG-in-KDD-Cup2024/HEAD/.gitattributes -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/USTCAGI/CRAG-in-KDD-Cup2024/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/USTCAGI/CRAG-in-KDD-Cup2024/HEAD/README.md -------------------------------------------------------------------------------- /evaluation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/USTCAGI/CRAG-in-KDD-Cup2024/HEAD/evaluation.py -------------------------------------------------------------------------------- /example_data/dataset_description-v3.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/USTCAGI/CRAG-in-KDD-Cup2024/HEAD/example_data/dataset_description-v3.md -------------------------------------------------------------------------------- /example_data/dev_data.jsonl.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/USTCAGI/CRAG-in-KDD-Cup2024/HEAD/example_data/dev_data.jsonl.bz2 -------------------------------------------------------------------------------- /image/API_extractor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/USTCAGI/CRAG-in-KDD-Cup2024/HEAD/image/API_extractor.png -------------------------------------------------------------------------------- /image/Framework.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/USTCAGI/CRAG-in-KDD-Cup2024/HEAD/image/Framework.png -------------------------------------------------------------------------------- /image/web_retriever.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/USTCAGI/CRAG-in-KDD-Cup2024/HEAD/image/web_retriever.png -------------------------------------------------------------------------------- /main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/USTCAGI/CRAG-in-KDD-Cup2024/HEAD/main.py -------------------------------------------------------------------------------- /models/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/USTCAGI/CRAG-in-KDD-Cup2024/HEAD/models/README.md -------------------------------------------------------------------------------- /models/load_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/USTCAGI/CRAG-in-KDD-Cup2024/HEAD/models/load_model.py -------------------------------------------------------------------------------- /models/mock_api/api.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/USTCAGI/CRAG-in-KDD-Cup2024/HEAD/models/mock_api/api.py -------------------------------------------------------------------------------- /models/mock_api/data/company_name.dict: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/USTCAGI/CRAG-in-KDD-Cup2024/HEAD/models/mock_api/data/company_name.dict -------------------------------------------------------------------------------- /models/mock_api/prompts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/USTCAGI/CRAG-in-KDD-Cup2024/HEAD/models/mock_api/prompts.py -------------------------------------------------------------------------------- /models/mock_api/pycragapi.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/USTCAGI/CRAG-in-KDD-Cup2024/HEAD/models/mock_api/pycragapi.py -------------------------------------------------------------------------------- /models/mock_api/tools/financetools.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/USTCAGI/CRAG-in-KDD-Cup2024/HEAD/models/mock_api/tools/financetools.py -------------------------------------------------------------------------------- /models/mock_api/tools/generaltools.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/USTCAGI/CRAG-in-KDD-Cup2024/HEAD/models/mock_api/tools/generaltools.py -------------------------------------------------------------------------------- /models/mock_api/tools/movietools.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/USTCAGI/CRAG-in-KDD-Cup2024/HEAD/models/mock_api/tools/movietools.py -------------------------------------------------------------------------------- /models/mock_api/tools/musictools.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/USTCAGI/CRAG-in-KDD-Cup2024/HEAD/models/mock_api/tools/musictools.py -------------------------------------------------------------------------------- /models/mock_api/tools/sportstools.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/USTCAGI/CRAG-in-KDD-Cup2024/HEAD/models/mock_api/tools/sportstools.py -------------------------------------------------------------------------------- /models/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/USTCAGI/CRAG-in-KDD-Cup2024/HEAD/models/model.py -------------------------------------------------------------------------------- /models/retrieve/build_vector_db.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/USTCAGI/CRAG-in-KDD-Cup2024/HEAD/models/retrieve/build_vector_db.py -------------------------------------------------------------------------------- /models/retrieve/build_vector_db_task3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/USTCAGI/CRAG-in-KDD-Cup2024/HEAD/models/retrieve/build_vector_db_task3.py -------------------------------------------------------------------------------- /models/retrieve/retriever.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/USTCAGI/CRAG-in-KDD-Cup2024/HEAD/models/retrieve/retriever.py -------------------------------------------------------------------------------- /models/router/router.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/USTCAGI/CRAG-in-KDD-Cup2024/HEAD/models/router/router.py -------------------------------------------------------------------------------- /prompts/templates.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/USTCAGI/CRAG-in-KDD-Cup2024/HEAD/prompts/templates.py -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/USTCAGI/CRAG-in-KDD-Cup2024/HEAD/requirements.txt -------------------------------------------------------------------------------- /tokenizer/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/USTCAGI/CRAG-in-KDD-Cup2024/HEAD/tokenizer/README.md -------------------------------------------------------------------------------- /tokenizer/special_tokens_map.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/USTCAGI/CRAG-in-KDD-Cup2024/HEAD/tokenizer/special_tokens_map.json -------------------------------------------------------------------------------- /tokenizer/tokenizer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/USTCAGI/CRAG-in-KDD-Cup2024/HEAD/tokenizer/tokenizer.json -------------------------------------------------------------------------------- /tokenizer/tokenizer.model: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/USTCAGI/CRAG-in-KDD-Cup2024/HEAD/tokenizer/tokenizer.model -------------------------------------------------------------------------------- /tokenizer/tokenizer_config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/USTCAGI/CRAG-in-KDD-Cup2024/HEAD/tokenizer/tokenizer_config.json --------------------------------------------------------------------------------