query-expansion / README.md
s-emanuilov's picture
Update README.md
9c17a88 verified
|
raw
history blame
2.49 kB
metadata
license: cc-by-4.0
task_categories:
  - text-generation
language:
  - en
tags:
  - query-expansion
  - semantic-search
  - search-expansion
pretty_name: Query Expansion Dataset
size_categories:
  - 1K<n<10K

Query Expansion Dataset

This dataset is designed for training search query expansion models that can generate multiple semantic expansions for a given query.

Purpose

The goal of this dataset is to serve as input for training small language models (0.5B to 3B parameters) to act as query expander models in Retrieval-Augmented Generation (RAG) systems.

Many advanced RAG systems currently use a query expansion component that makes external calls to large language models. While effective, this can add latency to the system. The purpose of this initiative is to enable the development of smaller, efficient query expander models that can perform this task without the added latency.

This dataset is the first step. In the near future, I plan to release the trained query expander models as well.

Dataset Creation

This dataset was created using a diverse set of state-of-the-art large language models. These LLMs were prompted with queries covering a wide range of topics and lengths, representing different user intents.

The choice to use multiple LLMs was made to reduce the bias that might be introduced by using a single model. The broad spectrum of topics covered and the variety of query intents (informational, navigational, transactional, commercial) ensures the dataset is comprehensive and diverse. After generation, the data underwent manual curation to ensure high quality.

Structure

Format: JSONL
Query types: Informational, Navigational, Transactional, Commercial
Each entry:

  • Original query
  • 3-7 semantic expansions

Example

{"query": "Best gaming laptops 2024", "expansions": ["Top rated gaming laptops 2024", "Highest performance gaming computers", "Premium gaming notebook recommendations", "Best value gaming laptops this year"]}

Usage

from datasets import load_dataset
dataset = load_dataset("s-emanuilov/query-expansion")

License

This dataset is licensed under a Creative Commons Attribution 4.0 International License (CC BY 4.0).

Citation

@dataset{query_expansion_dataset,
  author = {Emanuilov, S},
  title = {Query Expansion Dataset},
  year = {2024},
  publisher = {Hugging Face},
  howpublished = {\url{https://huggingface.co/datasets/s-emanuilov/query-expansion}},
}