Datasets:
Add comprehensive dataset card for TalkPlay-Tools Environments
#1
by
nielsr
HF Staff
- opened
README.md
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-nc-4.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- audio-text-to-text
|
| 5 |
+
tags:
|
| 6 |
+
- music-recommendation
|
| 7 |
+
- llm
|
| 8 |
+
- tool-calling
|
| 9 |
+
- conversational-ai
|
| 10 |
+
- retrieval
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# TalkPlay-Tools Environments
|
| 14 |
+
|
| 15 |
+
This repository contains the prebuilt tool environments essential for the [TalkPlay-Tools: Conversational Music Recommendation with LLM Tool Calling](https://huggingface.co/papers/2510.01698) system.
|
| 16 |
+
|
| 17 |
+
The paper proposes an LLM-based music recommendation system with tool calling that serves as a unified retrieval-reranking pipeline. These tool environments enable the system to interpret user intent, plan tool invocations, and orchestrate specialized components such as boolean filters (SQL), sparse retrieval (BM25), dense retrieval (embedding similarity), and generative retrieval (semantic IDs).
|
| 18 |
+
|
| 19 |
+
* **Paper:** [TalkPlay-Tools: Conversational Music Recommendation with LLM Tool Calling](https://huggingface.co/papers/2510.01698)
|
| 20 |
+
* **Project Page:** [https://talkpl.ai/p/talkplay_tools/index.html](https://talkpl.ai/p/talkplay_tools/index.html)
|
| 21 |
+
* **Code Repository:** [https://github.com/talkpl-ai/talkplay-tools](https://github.com/talkpl-ai/talkplay-tools)
|
| 22 |
+
* **Associated Demo Data:** [talkpl-ai/TalkPlayData-2](https://huggingface.co/datasets/talkpl-ai/TalkPlayData-2)
|
| 23 |
+
|
| 24 |
+
## Dataset Structure
|
| 25 |
+
|
| 26 |
+
The `tool_env.tar.gz` bundle, provided as part of this dataset, contains the following subdirectories:
|
| 27 |
+
* `cache/metadata` (test metadata files)
|
| 28 |
+
* `cache/bm25` (BM25 indices and `track_index.json`)
|
| 29 |
+
* `cache/encoder` (vector DB for embeddings)
|
| 30 |
+
* `cache/semantic_id` (RVQ indices per modality)
|
| 31 |
+
* `cache/sql` (SQLite DB for tracks)
|
| 32 |
+
|
| 33 |
+
## Sample Usage (Fetching Tool Environments)
|
| 34 |
+
|
| 35 |
+
Prebuilt demo indices are expected under `./cache`. You can download a prepared bundle and extract it:
|
| 36 |
+
|
| 37 |
+
```bash
|
| 38 |
+
wget https://huggingface.co/datasets/talkpl-ai/TalkPlayTools-Env/resolve/main/tool_env.tar.gz
|
| 39 |
+
tar -xzvf tool_env.tar.gz -C ./cache
|
| 40 |
+
```
|
| 41 |
+
|
| 42 |
+
This will create the necessary tool environment directories in your local `./cache` folder, allowing you to use them with the [TalkPlay-Tools code](https://github.com/talkpl-ai/talkplay-tools).
|
| 43 |
+
|
| 44 |
+
## Sample Usage (Quick Start)
|
| 45 |
+
|
| 46 |
+
Once the tool environments are set up, you can run an example query with the provided test data (cold-start user case). This demo uses only **6,744 tracks** from the test split of [TalkPlayData-2](https://huggingface.co/datasets/talkpl-ai/TalkPlayData-2). Due to licensing constraints, the system returns Spotify links instead of direct audio files.
|
| 47 |
+
|
| 48 |
+
```bash
|
| 49 |
+
python run.py --user_query "I'm looking for calm and slow tempo piano music."
|
| 50 |
+
```
|
| 51 |
+
|
| 52 |
+
Example output:
|
| 53 |
+
|
| 54 |
+
```bash
|
| 55 |
+
----------------------------------------------------------------------------------------------------
|
| 56 |
+
🎵 Music: https://open.spotify.com/track/00CXUMREit80f2McJsjcIz
|
| 57 |
+
🤖 Assistant Response:
|
| 58 |
+
I’ve found a perfect match for your request!
|
| 59 |
+
**"Lieder ohne Worte (Songs without Words), Book 2, Op. 30: No. 7 in E-flat major"**
|
| 60 |
+
by **Felix Mendelssohn**, performed by **Péter Nagy**.
|
| 61 |
+
This classical piano piece features a **slow tempo (65.79 BPM)**, **mellow melodies**,
|
| 62 |
+
and a **romantic, emotional tone** that exudes calm and introspection.
|
| 63 |
+
|
| 64 |
+
The track’s **F# major key** and **instrumental, melancholic style**
|
| 65 |
+
make it ideal for a relaxed, reflective mood. It’s a beautifully
|
| 66 |
+
crafted piece that aligns perfectly with your request for calm and slow piano music.
|
| 67 |
+
|
| 68 |
+
Would you like to explore similar tracks, or need recommendations for different moods?
|
| 69 |
+
I’m here to help! 🎹
|
| 70 |
+
----------------------------------------------------------------------------------------------------
|
| 71 |
+
More detail results (Chain of Thought / Tool Calling / Response) are saved in ./demo/static
|
| 72 |
+
```
|
| 73 |
+
|
| 74 |
+
## License
|
| 75 |
+
|
| 76 |
+
This project is released under the CC-BY-NC 4.0 license.
|