遇见数据集

Smart-Emergency-Response

收藏
魔搭社区2026-07-07 更新2025-11-03 收录
官方服务:

资源简介:

2025“大运河杯”数据开发应用创新大赛——智慧应急赛道 baseline

## Environment Setup ### Environment Creation bash conda create -n Smart-Emergency-Response python=3.10 ### Activate Environment bash conda activate Smart-Emergency-Response ### Dependency Installation bash pip install -r requirements.txt ## Obtain API Key This project requires the use of large language models (LLMs). Since locally deploying large-parameter LLMs is difficult, we will choose to use API interfaces provided by OpenAI-compatible LLM service providers. Here we use the API from SiliconFlow, as they provide free embedding models and small-parameter language models, which are suitable for basic learning purposes. > Note: SiliconFlow has rate limits. If you encounter errors due to rate limiting, it is recommended to add appropriate sleep delays after encountering such errors. The system generally refreshes dynamically, and setting the sleep time to 10s or 50s should avoid frequent rate-limiting errors. To obtain an API key, visit the [SiliconFlow official website](https://cloud.siliconflow.cn/i/FcjKykMn). You can also use my invitation code: `FcjKykMn`, and my invitation link: <https://cloud.siliconflow.cn/i/FcjKykMn>. **This will earn me a 20-million-token reward**. ![SiliconFlow Model Plaza](images/硅基流动模型广场.png) ## Configure Environment Variables Create a `.env` file and write the API key into it in the following format: bash OPENAI_API_KEY=your_api_key_here OPENAI_API_BASE=https://api.siliconflow.cn/v1 # Can be replaced with other service providers. OPENAI_API_MODEL=Qwen/Qwen2.5-7B-Instruct OPENAI_API_EMBEDDING_MODEL=BAAI/bge-m3 ## Baseline Directory Structure text /baseline |-- datas/ | |-- text_data/ | | |-- file1.docx | | |-- file2.pdf | | `-- ... (all text files) |-- .env |-- .env.example |-- main.py |-- local_llamaindex_llm.py |-- remote_embedding.py `-- question.csv ## Data Preparation Place the data required for the competition task into the corresponding directory. The complete directory structure is as follows: ![Complete Baseline and Repository Directory](images/完整的baseline及仓库目录.png) Our dataset should be placed in the `datas` folder under the baseline directory. You can directly copy the text data folder from the dataset into the `datas` directory. In the advanced phase, you can also place tabular data into the `datas` directory. ![Text Data Content](images/文本部分的数据内容.png) ## Run the Baseline Main Program Ensure you have switched to the baseline directory, then execute the following command: bash python main.py ## Post-run Directory Structure An `answer.csv` file will be generated in the baseline directory after running, which contains the answers to all questions. ![File Structure After Running Baseline Code](images/运行baseline的代码后的文件结构.png)

提供机构:
maas
创建时间:
2025-10-15
搜集汇总
数据集介绍
Smart-Emergency-Response 数据集图片
背景与挑战
背景概述
该数据集为'秋训营:应急安全RAG系统Baseline'项目提供支持,包含文本数据文件,用于构建应急安全RAG系统的基准实现。它遵循Apache 2.0许可证,提供环境配置、API集成和运行指南,旨在帮助用户快速上手和测试相关功能。
以上内容由遇见数据集搜集并总结生成
二维码
社区交流群
二维码
科研交流群
商业服务