--- license: mit task_categories: - text-generation - text-retrieval - text-ranking tags: - RAG - Workload - Real-World configs: - config_name: default data_files: - split: train path: "0_trace.jsonl" ---
🌐 Github Link | 🤗 Workload Trace | 📑 Arxiv Paper | 🤖 How to use?
RAGPulse is a real-world RAG workload trace collected from an university-wide Q&A service scenario. The system has been serving over 40,000 students and faculties since April 2024, providing intelligent policy Q&A services. The trace contains a total of 7,106 records entries, sampled from one week of our Q&A service. ## Dataset Details **There are currently 6 files in [data](https://github.com/flashserve/RAGPulse/tree/main/data)** - `0_trace.jsonl` contains the key information of our trace. Totally 7,106 lines. - `1_sys_prompt.jsonl` contains the hash_ids corresponding to the system prompt content and the length of the token corresponding to the hash_ids. Totally 6,898 lines. - `2_passages.jsonl` contains the hash_ids corresponding to vector database, which holds a total of 8,302 lines of passages content, and the length of the token corresponding to the hash_ids. - `3_history.jsonl` contains the hash_ids corresponding to user's 4,910 lines chat history content, and the length of the token corresponding to the hash_ids. - `4_user_input.jsonl` contains the hash_ids corresponding to the question entered by the user content, which holds a total of 6,292 chunk hash_ids, and the length of the token corresponding to the hash_ids. - `5_web_search.jsonl` contains the hash_ids corresponding to content retrieved online content, and the length of the token corresponding to the hash_ids. ### Dataset Description ```json { "timestamp": "27", "input_length": 3861, "output_length": 127, "hash_ids": { "sys_prompt": [8325, 8326, 11575], "passages_ids": [6123, 7239, 6124, 1167, 7250, 5448], "history": [15215], "web_search": [20319, 20320], "user_input": [23648] }, "session_id": "1758081660427-xa8rbsd2uco1" } ``` The above shows **one example** from **RAGPulse**. All textual content has been replaced with remapped hash IDs for user privacy. The detailed structure of the trace is as follows: - `timestamp`: The request submission time,in seconds, measured from the beginning of the trace (12:00:00). - `input_length`: Total token length of the request, including the system prompt, retrieved passages, chat history, web search, user input, and so on. - `output_length`: Total token length of the output. - `hash_ids`: A comprehensive collection of hash identifiers representing every component of the request's input. This includes unique IDs for the system prompt, all retrieved documents, user chat history, external web search results,and user's question. - `session_id`: The conversation identifier to which the request belongs. ## Significance ### Why we need a RAG-Specific trace? - **Multi-Stage Pipeline Complexity**