|
distilabel: |
|
version: 1.0.3 |
|
pipeline: |
|
name: query_from_doc_pipeline |
|
description: null |
|
steps: |
|
- step: |
|
name: load_dataset |
|
input_mappings: {} |
|
output_mappings: {} |
|
batch_size: 50 |
|
repo_id: rasdani/cohere-wikipedia-2023-11-it-1.5k-articles-positives |
|
split: train |
|
config: null |
|
runtime_parameters_info: |
|
- name: batch_size |
|
optional: true |
|
description: The number of rows that will contain the batches generated by |
|
the step. |
|
- name: repo_id |
|
optional: false |
|
description: The Hugging Face Hub repository ID of the dataset to load. |
|
- name: split |
|
optional: true |
|
description: The split of the dataset to load. Defaults to 'train'. |
|
- name: config |
|
optional: true |
|
description: The configuration of the dataset to load. This is optional and |
|
only needed if the dataset has multiple configurations. |
|
type_info: |
|
module: distilabel.steps.generators.huggingface |
|
name: LoadHubDataset |
|
name: load_dataset |
|
- step: |
|
name: query_from_wikipedia |
|
input_mappings: {} |
|
output_mappings: {} |
|
input_batch_size: 50 |
|
llm: |
|
generation_kwargs: |
|
temperature: 0.0 |
|
model: gpt-4o |
|
base_url: https://api.openai.com/v1 |
|
max_retries: 6 |
|
timeout: 120 |
|
type_info: |
|
module: distilabel.llms.openai |
|
name: OpenAILLM |
|
group_generations: false |
|
num_generations: 1 |
|
constraints: [] |
|
role: '' |
|
context_examples: |
|
- "Guam === Nach dem Zweiten Weltkrieg === Seit 1946 steht das Territorium auf\ |
|
\ der UN-Liste der Hoheitsgebiete ohne Selbstregierung. 1949 unterschrieb\ |
|
\ Harry S. Truman den Organic Act, ein Gesetz, das Guam zu einem externen\ |
|
\ Territorium der USA mit innerer Autonomie machte, das es bis heute geblieben\ |
|
\ ist. Ab 1962 baute die United States Navy den Hafen Apra zu einem Marinest\xFC\ |
|
tzpunkt f\xFCr die Atom-U-Boote aus, die mit strategischen Mittelstreckenraketen\ |
|
\ vom Typ UGM-27 Polaris ausger\xFCstet sind (SSBN). Vom 15. September 1996\ |
|
\ bis 16. Dezember 1996 f\xFChrten die USA die verdeckte Operation Pacific\ |
|
\ Haven / Quick Transit Irak-Guam durch." |
|
question_examples: |
|
- "Seit wann geh\xF6rt Guam zu dem Gebiet der Vereinigten Staaten?" |
|
language: Italian |
|
runtime_parameters_info: |
|
- name: input_batch_size |
|
optional: true |
|
description: The number of rows that will contain the batches processed by |
|
the step. |
|
- name: llm |
|
runtime_parameters_info: |
|
- name: generation_kwargs |
|
description: The kwargs to be propagated to either `generate` or `agenerate` |
|
methods within each `LLM`. |
|
keys: |
|
- name: max_new_tokens |
|
optional: true |
|
description: the maximum number of new tokens that the model will generate. Defaults |
|
to `128`. |
|
- name: frequency_penalty |
|
optional: true |
|
description: the repetition penalty to use for the generation. Defaults to |
|
`0.0`. |
|
- name: presence_penalty |
|
optional: true |
|
description: the presence penalty to use for the generation. Defaults |
|
to `0.0`. |
|
- name: temperature |
|
optional: true |
|
description: the temperature to use for the generation. Defaults to `0.1`. |
|
- name: top_p |
|
optional: true |
|
description: the top-p value to use for the generation. Defaults to `1.0`. |
|
- name: stop |
|
optional: true |
|
description: a string or a list of strings to use as a stop sequence for |
|
the generation. Defaults to `None`. |
|
- name: base_url |
|
optional: true |
|
description: The base URL to use for the OpenAI API requests. |
|
- name: api_key |
|
optional: true |
|
description: The API key to authenticate the requests to the OpenAI API. |
|
- name: max_retries |
|
optional: true |
|
description: The maximum number of times to retry the request to the API |
|
before failing. |
|
- name: timeout |
|
optional: true |
|
description: The maximum time in seconds to wait for a response from the |
|
API. |
|
- name: num_generations |
|
optional: true |
|
description: The number of generations to be produced per input. |
|
type_info: |
|
module: projects.mmteb.query_from_doc |
|
name: QueryFromWikipedia |
|
name: query_from_wikipedia |
|
connections: |
|
- from: load_dataset |
|
to: |
|
- query_from_wikipedia |
|
- from: query_from_wikipedia |
|
to: [] |
|
type_info: |
|
module: distilabel.pipeline.local |
|
name: Pipeline |
|
|