waleedkadous / ansari-backend

Ansari is a helper for you to become a better Muslim
65 stars 12 forks source link

Missing `ask_question.txt` file #21

Closed abdullah-alnahas closed 3 months ago

abdullah-alnahas commented 4 months ago

I'm attempting to run generation-answers.ipynb, which depends on a file named ask_questions.txt. However, I couldn't locate this file within the repository. Since I needed it to proceed, I've created a version with what I believe is the intended content. I'm opening this issue to suggest adding the ask_questions.txt file for the benefit of others.

My assumed content:

**Instructions**: Carefully read the provided question, consider all the listed options after "OPTIONS:", and select the correct answer option. Use tools and functions when and if they are available. Provide step-by-step reasoning for your choice in the "reasoning" field, taking one small reasoning step at a time. Respond strictly in the specified JSON format with the keys "reasoning" (for your step-by-step reasoning) and "answer" (for the option text), by replacing "Correct Option" with the exact text of the chosen option, without including any option letter or number. Ensure the response adheres to the JSON structure with the key "answer" and the correct option text as the value, enclosed in double quotes. Do not provide any additional explanations or comments outside the JSON format.

*Example*:

Question: What is the capital of France?

OPTIONS: London, Paris, Berlin, Madrid

```json
{
"reasoning": "France is a country in Western Europe. The capital of a country is typically a major city within that country. Paris is a major city in France and is widely known as the capital.",
"answer": "Paris"
}
\```

---

Question: {{ question }}

OPTIONS: 
{% for option in options -%}
{{ option }}{% if not loop.last %}, {% endif %}
{%- endfor %}

```json
{
"reasoning": "your step by step reasoning",
"answer": "Correct Option"
}
\```
abdullah-alnahas commented 3 months ago

The issue has been addressed in Pull Request #18. Closing.