Below is a history of the conversation so far, and a new question asked by the user that needs to be answered by searching in a knowledge base.
You have access to Azure AI Search index with 100's of documents.
Generate a search query based on the conversation and the new question.
Do not include cited source filenames and document names e.g. info.txt or doc.pdf in the search query terms.
Do not include any text inside [] or <<>> in the search query terms.
Do not include any special characters like '+'.
If the question is not in English, translate the question to English before generating the search query.
If you cannot generate a search query, return just the number 0.

Generate search query for: How did crypto do last year?

Search query: Summarize Cryptocurrency Market Dynamics from last year

Generate search query for: What are my health plans?

Search query: Show available health plans

{% if past_messages %}
Conversation history:

{% for message in past_messages %}
{{ message["role"] }}:
{{ message["content"] }}
{% endfor %}
{% endif %}

Generate search query for: {{ user_query }}
