agentlans/allenai-WildChat-4.8M-prompts huggingface dataset:
Goal
    Traduire toutes les valeurs textuelles présentes dans une liste d’objets d’une recette de cuisine de en (ISO 639) vers fr (ISO 639), en respectant le contexte culinaire.

    Traduire précisément les ingrédients et termes culinaires pour qu'ils soient corrects dans la langue cible.
    Maintenir la structure JSON intacte, en ne modifiant que les valeurs.
    S’assurer que les ingrédients restent compréhensibles et adaptés à la langue cible.

    Return Format
    Tu dois renvoyer une liste d’objets sous la forme reçu.
    - Chaque valeur doit être correctement traduite en fr.
    - Les ingrédients doivent être adaptés à la langue cible.
    - Aucune clé ne doit être modifiée.

    Warnings
    - Ne modifie pas la structure JSON, uniquement les valeurs textuelles.
    - Fais attention aux ingrédients : une mauvaise traduction peut altérer la compréhension.
    - Ne laisse aucune valeur non traduite.
    - Ne renvoie que le JSON, sans explication.

    Context Dump
    Langue source : en (ISO 639)
    Langue cible : fr (ISO 639)
    Données à traduire :

    [
  {
    "recipeCode": "b0a3ce0796024ae3be22b4ef573d861c",
    "updated": "2025-05-09T05:03:04.597Z",
    "title": "The Sound and the Curry Burger",
    "subtitle": "Season 1, Episode 10: Burger Wars",
    "description": "This all-beef patty is coated in a flavorful coconut curry sauce and garnished with scallions, all served on a lightly toasted potato bun. You can also try this recipe using turkey or lamb. The name is a literary nod to Faulkner. Any leftover curry sauce is perfect for dipping fries.",
    "ingredients": [
      {
        "section": "For the recipe",
        "ingredients": [
          "coconut oil",
          "garlic, minced",
          "diced white onion",
          "curry powder",
          "salt",
          "ground ginger",
          "cayenne, or taste",
          "ground turmeric",
          "13.5 ounce can coconut milk",
          "vegetable stock",
          "plain yogurt or sour cream",
          "ground beef",
          "buns",
          "scallions, thinly sliced"
        ]
      }
    ],
    "instructions": [
      "Heat the coconut oil and garlic over medium heat.",
      "Add the diced onion and stir frequently until the onions are soft and translucent.",
      "Add the curry powder, salt, ground ginger, cayenne, and turmeric, then reduce heat to medium-low.",
      "Stir the mixture for about 10 minutes, until it thickens slightly.",
      "Adjust the spice level to your preference.",
      "Remove from heat and let the sauce cool.",
      "Place the yogurt in a bowl and mix in 1 cup of the cooled curry sauce to create a thick sauce.",
      "Form 4 patties with the ground beef, season both sides with salt and pepper, and cook according to your usual method.",
      "Assemble your burger: bottom bun, beef patty, yogurt-coconut curry sauce, scallions, and top bun."
    ],
    "notes_ingredients": null,
    "notes_instructions": null
  }
]
User: 

You are given access to make searches on the Internet. The format for making a search is:
1. After the user sends a message, you will decide whether to make a search. If you choose to make a search, you will output a single message, starting with the word <web_search>, followed by ONLY your web search query. After your search query, you must output the token </web_search> to denote the end of the search query. Keep your search query concise.
2. The system will then append the web search results at the end of the user message, starting with the token <web_search_results>. Take note that the user CANNOT SEE the content after <web_search_results> - YOU should use these results appropriately to improve your response. Additionally, If the web search results are already present in the user's message, then you MUST NOT request another web search.

IMPORTANT! You should choose to search the web ONLY if ANY of the following circumstances are met:
1. User is asking about current events or something that requires real-time information (news, sports scores, 'latest' information, etc.)
2. User is asking about some term you are unfamiliar with (e.g. if it's a little-known term, if it's a person you don't know well, etc.)
3. User is asking about anything that involves numerical facts (e.g. distances between places, population count, sizes, date and time, etc.)
4. User explicitly asks you to search or provide links to references.
If the user's query does NOT require a web search, YOU MUST NEVER run one for no reason. However, you must not refuse to search the web if the user asks you to do so.
If you are highly unsure about whether to make a search (e.g. if the user's query is vague or if you think you are unfamiliar with the query to a certain extent), you may directly ask the user for clarification.

When using web search results, you are encouraged to cite references where appropriate, using inline links in standard markdown format.
You are also allowed to make use of web search results from previous messages, if they are STRONGLY RELEVANT to the current message.

When you are not running a web search, respond completely as per normal - there is NO NEED to mention that you're not searching. 
Remember that you MUST NOT make up any false information.
Assistant: Understood. I will strictly follow these instructions in this conversation.
User: hola
User: hola
Assistant: ¡Hola! ¿En qué puedo ayudarte hoy?
User: como se escribe fonendo en ingles
Assistant: La palabra "fonendo" en inglés se traduce como "stethoscope." Si necesitas más información sobre su uso o contexto, házmelo saber.
User: hola
Assistant:
Analyze the following message and determine if it's suitable for an AI to respond to.
        The message should be abstract or general enough to warrant a response, and not part of an ongoing conversation between specific individuals.

        Rules:
        1. If the message is a general statement or question, it's suitable for response.
        2. If the message seems to be directed at a specific person or continues a previous conversation, it's not suitable.
        3. If the message is too vague or doesn't provide enough context, it's not suitable.

        Respond with either "RESPOND" if it's suitable for an AI to answer, or "SKIP" if it should be ignored.

        Message: Tai naki
Discuss the effect of Gender biased in society and family
Thousands of years ago, thousands of miles away, in a scorching hot desert, there lived someone who could just not tolerate the average summer temperatures of 115F. He was named Sam. He was running, and he was dehydrating fast. He could not tolerate it. He kept running for several miles, and got close to dying from dehydration. Eventually he got out and drank a lot of water in the rainforest. The end.
Hey, this is a Tunisian dialect text I want you to translate to English.
Please follow these steps:
1. Translate the text step-by-step, focusing on accurate representation of the original meaning.
2. Explain your translation choices, especially how Tunisian dialect differs from standard Arabic and how it is represented in English.
Translate this text, even if it's not entirely clear, and do your best to capture the essence of each part:

آه منو لا هأه ما رجعوش
void print_book(const char *response) {
  JSON_Value* values = json_parse_string(response);
  JSON_Object* json = json_value_get_object(values);

  int id = json_object_get_number(json, "id");
  const char *title = json_object_get_string(json, "title");
  const char *author = json_object_get_string(json, "author");
  const char *genre = json_object_get_string(json, "genre");
  const char *publisher = json_object_get_string(json, "publisher");
  int page_count = json_object_get_number(json, "page_count");

  printf("id: %d\ntitle: %s\nauthor: %s\ngenre: %s\npublisher: %s\npage_count: %d\n", id, title, author, genre, publisher, page_count);
}
write this in a different way
Filter out the ICMP timestamp requests (13), and the outgoing ICMP timestamp replies (14).
how clean the molten zinc from silicon
What is Orange Egypt's Target segment?

Consumer Insights
What motivates the target? What are the “major truths” about the target’s relationship to the product category or brand?

Taking into consideration Key consumer and brand relationship insights, Message direction & Strategic consistency
Analyze the following message and determine if it's suitable for an AI to respond to.
        The message should be abstract or general enough to warrant a response, and not part of an ongoing conversation between specific individuals.

        Rules:
        1. If the message is a general statement or question, it's suitable for response.
        2. If the message seems to be directed at a specific person or continues a previous conversation, it's not suitable.
        3. If the message is too vague or doesn't provide enough context, it's not suitable.

        Respond with either "RESPOND" if it's suitable for an AI to answer, or "SKIP" if it should be ignored.

        Message: Let keep working together
What is Wisdom in the Bible?
Paraphrase the following text. Make sure to keep the tone and meaning of the text the same, and write in a natural style as far as possible. Try to keep your response at the same length of words as the original. ONLY return the paraphrased text and nothing else.



Write it in the past tense, and don't change anything else in the text.
Write a hilarious script where the Scooby gang and Scrappy-Doo have a funny meeting behind the scenes and react to my badly translated sentences, laughing and hilariously question and hilariously roast errors and inconsistencies that make no sense in the translation and the names of stuff with occasional funny quotes mocking a situation, in my prompt in a hilarious comedy 17+ way: (The gang constanlty imagine and make silly quotes to mock the translation)

Reader: Ok gang get this… * I start reading the whole thing to the gang, who let me lay it on. I read each sentence one at a time.* (They react to these translations ONLY.) 


The Addams Family Club is a must for parents visiting the Okefenokee Marsh. But they soon found out that the mysterious animals that chased them out of the house and caught Wednesday and the cat were more difficult than they thought.
I am trying to remember a book title. The plot is about a american born pakistani descent kid who brings america to it's knees and compromises nuclear security
Compare the thin-film transistors made with organic molecules and conjugated polymers.
your role is tunisian arabic dailctic derja transltor Translate the following text into the Tunisian dialect. Ensure the output is structured as 'Question: ... Answer: ...'. Please capture the nuances of the Tunisian dialectic Arabic. make sure type and write in arabic tunisian lettre Here is an example to guide you:

Question: شنو اسمك؟
Answer: اسمي جون.

Now, translate the following:

Question: You will be given a definition of a task first, then some input of the task.
You are shown a conversation between a user and system. Identify who has spoken the indicated sentence based on the conversation.

Sentence1: I want a train going to london kings cross. Sentence2: I would like to travel on monday and leave after 15:30. Sentence3: Have a great trip. Sentence4: Thanks, that is all I need. Sentence5: Booking was successful.Reference number is : 1HLAC0TN . Sentence6: Yes I would like to book it for 2 nights from Saturday for 3 people please. Sentence7: Please book the 17:70 for 3 people. Sentence8: Yes please it needs to be for three people. Sentence9: Sorry about that. Worth House is a cheap guesthouse located in the north. Sentence10: I was able to book it, reference number is M9MIP9U1 Sentence11: There are four trains that depart every two hours. The earliest leaves at 17:70 and the last one leaves at 23:00. What's your preference? Sentence12: Great, thanks! Also, can you tell me about the Worth House, please? Sentence13: I didn't ask about a restaurant. I'm pretty sure that's a hotel. Sentence14: I am departing from cambridge. Sentence15: We have 70 trains that meet that criteria, what is your point of departure please? Sentence16: Great! What day would you like to leave? Do you have any preferred times to leave and arrive by? Sentence17: Actually, the earliest train, TR7786 leaves Cambridge at 17:00 and arrives at 17:51. Should I go ahead a book this for 3 people? Sentence18: i am not sure is that a restaurant? Question: Who has spoken the sentence 15? (A) User (B) System
Output:
Answer: Part #1: Identify the key sentence from the task.
Usage: Sentence 15: "We have 70 trains that meet that criteria, what is your point of departure please?" 
This is the key sentence to analyze from the task definition.

Part #2: Analyze the conversation context.
Usage: The conversation is between a user and a system. The user is asking for booking and information requests, and the system is answering and assisting with these requests.

Part #3: Determine the speaker based on the conversation context.
Usage: (B) System
The sentence 15 is spoken by the System because it is providing information on the number of trains that meet the given criteria and asking for additional information (point of departure) from the user. This meets the criteria because it is an informative and helpful response which is expected from a system assisting with booking and travel information.
You are a helpful assistant.
import os
import gradio as gr
import whisper
from context_loader import ContextLoader
from models.gpt4o import ModelClient


class NeuroRavenApp:
    def __init__(self):
        self.system_prompt = None
        self.current_theme = None
        self.client = ModelClient()
        self.context_loader = ContextLoader()
        self.model = whisper.load_model("medium")  # Загружает модель whisper
        self.conversation_themes = self.get_conversation_themes()
        if "Без контекста" not in self.conversation_themes:
            self.conversation_themes.append("Без контекста")

    @staticmethod
    def get_conversation_themes(docs_path='docs'):
        # Получаем список всех директорий в указанном пути
        return [name for name in os.listdir(docs_path) if os.path.isdir(os.path.join(docs_path, name))]

    def handle_query(self, message, history, audio, context_theme):
        # Если аудио предоставлено, используем Whisper для преобразования в текст
        if audio is not None:
            print(audio)
            audio = whisper.load_audio(audio)
            audio = whisper.pad_or_trim(audio)
            mel = whisper.log_mel_spectrogram(audio).to(self.model.device)
            _, probs = self.model.detect_language(mel)
            options = whisper.DecodingOptions()
            result = whisper.decode(self.model, mel, options)
            # Используем модель Whisper для распознавания речи
            print(result.text)
            message += "\n" + result.text  # Обновляем сообщение текстом из аудио

        if context_theme != self.current_theme:
            context = self.context_loader.load_txt_files(context_theme)
            if context:
                self.system_prompt = f"Отвечай на вопросы беря информацию из контекста: \n{context}"
            else:
                self.system_prompt = "You are a helpful assistant."

            self.current_theme = context_theme

        response = self.client.get_response(
            message=message,
            history=history,
            sys_prompt=self.system_prompt
        )
        return response

    def launch_app(self):
        gr.ChatInterface(
            self.handle_query,
            chatbot=gr.Chatbot(height=500),
            retry_btn=None,
            clear_btn="Clear",
            theme="soft",
            title="NeuroRaven",
            css="footer{display:none !important}",
            additional_inputs=[
                gr.Microphone(type="filepath"),
                gr.Dropdown(self.conversation_themes, label="Выбери тему контекста", value="Без контекста"),
            ]
        ).launch()


if __name__ == "__main__":
    app = NeuroRavenApp()
    app.launch_app()
Мне надо вынести модель по распознаванию речи в отдельный класс и сделать ее уникальной, чтобы я мог переиспользовать например другую модель сюда впихнуть в мой код.
Goal
    Traduire toutes les valeurs textuelles présentes dans une liste d’objets d’une recette de cuisine de en (ISO 639) vers hi (ISO 639), en respectant le contexte culinaire.

    Traduire précisément les ingrédients et termes culinaires pour qu'ils soient corrects dans la langue cible.
    Maintenir la structure JSON intacte, en ne modifiant que les valeurs.
    S’assurer que les ingrédients restent compréhensibles et adaptés à la langue cible.

    Return Format
    Tu dois renvoyer une liste d’objets sous la forme reçu.
    - Chaque valeur doit être correctement traduite en hi.
    - Les ingrédients doivent être adaptés à la langue cible.
    - Aucune clé ne doit être modifiée.

    Warnings
    - Ne modifie pas la structure JSON, uniquement les valeurs textuelles.
    - Fais attention aux ingrédients : une mauvaise traduction peut altérer la compréhension.
    - Ne laisse aucune valeur non traduite.
    - Ne renvoie que le JSON, sans explication.

    Context Dump
    Langue source : en (ISO 639)
    Langue cible : hi (ISO 639)
    Données à traduire :

    [
  {
    "recipeCode": "f9108b128e054f97a9e07e9777c151f3",
    "updated": "2025-04-21T22:52:06.406Z",
    "title": "Chocolate Chili Nut Meringues",
    "subtitle": null,
    "description": "These unique meringues offer a surprising twist with the addition of savory spices. The combination of spicy heat and rich chocolate creates a truly addictive flavor profile.",
    "ingredients": [
      {
        "section": "For the recipe",
        "ingredients": [
          "coarsely chopped walnuts",
          "plus 1 tablespoon confectioners' sugar",
          "good-quality unsweetened cocoa powder",
          "salt-free southwest chipotle seasoning",
          "% teaspoon ground cinnamon",
          "egg whites"
        ]
      }
    ],
    "instructions": [
      "Preheat oven to 300°F.",
      "Line two baking sheets with parchment paper.",
      "Toast the walnuts in a small skillet over medium heat until fragrant and crispy, approximately 6 minutes.",
      "Set aside to cool.",
      "In a separate bowl, sift together ½ cup confectioners' sugar, cocoa powder, Southwest Chipotle seasoning, and cinnamon.",
      "Using an electric mixer, beat the egg whites until stiff peaks form.",
      "Carefully fold the dry ingredients into the beaten egg whites.",
      "Gently incorporate the toasted walnuts.",
      "Drop rounded teaspoonfuls of the meringue mixture onto the prepared baking sheets, ensuring a 1-inch space between each.",
      "Bake for 20 to 25 minutes, or until the meringues are set.",
      "Remove from the oven and allow to cool completely on a wire rack.",
      "Dust with the remaining confectioners' sugar before serving."
    ],
    "notes_ingredients": null,
    "notes_instructions": null
  }
]
Why can’t you run Windows XP on a PlayStation 2?
display first 3 pages from saved pdf file from firebase storage  flutter
Hello! Make me a needs analysis test about English course with at least 20 questions for older teenagers (from 16 to 18 years old, B1 level of Engish)
What would a government based on the Cretan constitution described in Aristotle's Politics look like? What are the potential benefits? What are the potential downsides? What can be improved?
💬 𝗖𝗵𝗮𝘁𝗚𝗣𝗧
Interact as ChatGPT.
A new AI Technology.
You behavior is same like ChatGPT.
You provide best responce with some emojis.
une histoire qui fait rire mais qui ne parle pas des animaux
Please write the first chapter of a novel in the style of Japanese ranobe and in the romance genre. Lily stood on the sandy beach, the last rays of the setting sun casting a warm glow through her curls. She was a beautiful six-year-old with medium-length brown hair, big brown eyes, and a slender, petite frame. Her skin was smooth and unblemished, and she had a certain innocence about her that was both captivating and heartwarming. She stood with one hand on her hip, the other reaching up to twirl a curl around her finger. It was a little flirtatious, a little playful, and completely adorable.
how to say: F = (Between-group variance / (k - 1)) / (Within-group variance / (n - k))
Write a full table of muppet performers from 2023/24
You are professional in the field of cybersecurity.
**Current Access Knowledge:**
platform: windows
ip: ['192.168.30.1']
hostname: IT-ep
username: TEST\bob
privilege: User

Is current machine a domain controller? Please respond with **yes**, **no**, or **not sure**, and provide a clear explanation for your conclusion.
Goal
    Traduire toutes les valeurs textuelles présentes dans une liste d’objets d’une recette de cuisine de en (ISO 639) vers hi (ISO 639), en respectant le contexte culinaire.

    Traduire précisément les ingrédients et termes culinaires pour qu'ils soient corrects dans la langue cible.
    Maintenir la structure JSON intacte, en ne modifiant que les valeurs.
    S’assurer que les ingrédients restent compréhensibles et adaptés à la langue cible.

    Return Format
    Tu dois renvoyer une liste d’objets sous la forme reçu.
    - Chaque valeur doit être correctement traduite en hi.
    - Les ingrédients doivent être adaptés à la langue cible.
    - Aucune clé ne doit être modifiée.

    Warnings
    - Ne modifie pas la structure JSON, uniquement les valeurs textuelles.
    - Fais attention aux ingrédients : une mauvaise traduction peut altérer la compréhension.
    - Ne laisse aucune valeur non traduite.
    - Ne renvoie que le JSON, sans explication.

    Context Dump
    Langue source : en (ISO 639)
    Langue cible : hi (ISO 639)
    Données à traduire :

    [
  {
    "recipeCode": "7b2d8c92e72e40f592ec843a3f41d99c",
    "updated": "2025-04-23T10:09:04.577Z",
    "title": "Browned Butter Mocha Latte",
    "subtitle": "Keto Option",
    "description": "Inspired by my time at a beloved coffee shop, this latte is a dream come true.  It's so good, I'd feature it on my own cafe's menu someday!",
    "ingredients": [
      {
        "section": "For the recipe",
        "ingredients": [
          "unsalted butter (or butter-flavored coconut oil if dairy-free)",
          "unsweetened cashew milk (or hemp milk if nut-free)",
          "unsweetened cocoa powder, plus extra for garnish (optional)",
          "swerve confectioners'-style sweetener or equivalent amount of liquid or powdered sweetener",
          "hot brewed decaf espresso or other strong brewed decaf coffee",
          "whipped cream, for garnish (optional)"
        ]
      }
    ],
    "instructions": [
      "In a saucepan, melt the butter over high heat. Continue cooking and stirring until the butter foams and brown specks appear, approximately 5 minutes. This creates browned butter.",
      "If using butter-flavored coconut oil, heat until just melted.",
      "Lower the heat to medium and gradually whisk in the cashew milk.  It will sizzle as it combines with the browned butter.",
      "Heat the mixture until warm.",
      "Whisk in the cocoa powder and sweetener.",
      "For a frothy latte, use an immersion blender for about 1 minute.",
      "Pour the espresso into a large mug.",
      "Add the warmed milk mixture and stir thoroughly.",
      "Serve immediately. Garnish with whipped cream and a sprinkle of cocoa powder, if desired."
    ],
    "notes_ingredients": "Special equipment (optional): Immersion blender",
    "notes_instructions": null
  }
]