region:us
---
dataset_info:
  features:
  - name: id
    dtype: string
  - name: system_prompt
    dtype: string
  - name: question
    dtype: string
  - name: response
    dtype: string
  - name: meta
    struct:
    - name: subset
      dtype: string
  splits:
  - name: train
    num_bytes: 6194081932
    num_examples: 3601717
  - name: test
    num_bytes: 1093059093
    num_examples: 635599
  download_size: 3534002711
  dataset_size: 7287141025
---
# Dataset Card for "orca_en"

```python
def preprocess(
    sample, 
    instruction_key="### Instruction:",
    response_key="<|endofprompt|>",
    end_key="<|endoftext|>"
):
    
    system_prompt = sample['system_prompt']
    instruction = sample['question']
    response = sample['response']
    
    if system_prompt:
        return {'text': """{system_prompt}
{instruction_key}
{instruction}
{response_key}
{response}
{end_key}""".format(
    system_prompt=system_prompt,
    instruction_key=instruction_key,
    instruction=instruction,
    response_key=response_key,
    response=response,
    end_key=end_key,
)}
    else:
        return {'text': """{instruction_key}
{instruction}
{response_key}
{response}
{end_key}""".format(
    instruction_key=instruction_key,
    instruction=instruction,
    response_key=response_key,
    response=response,
    end_key=end_key,
)}

"""
You are an AI assistant. Provide a detailed answer so user don’t need to search outside to understand the answer.
### Instruction:
Q: Answer the following question given this paragraph:   The kidneys also secrete hormones that help maintain homeostasis. For example, they produce a hormone that stimulates bone marrow to produce red blood cells when more are needed. They also secrete a hormone that regulates blood pressure and keeps it in a normal range.   Q: What organs secrete hormones that help maintain homeostasis?   A:
The answer is:
<|endofprompt|>
The kidneys are the organs that secrete hormones to help maintain homeostasis. They produce a hormone that stimulates bone marrow to produce red blood cells when needed, and they also secrete a hormone that regulates blood pressure, keeping it within a normal range.
<|endoftext|>
"""
```