Skip to main content

Search

Search section allows you to ask questions to the AI Assistant you just built!

info

Additional Resources

Quickly discover how to retrieve precise answers with QAnswer's Search-Based Interface. Watch our 1-minute tutorial for simple, accurate data querying and get the insights you need!

UI Presentation

To access this AI task click on AI Tasks and Search:

info

In search interface of AI Task, the answers are based only on the information delivered to the AI Assistant with the connectors. You can refer to the data-source section to setup a connector, check Data Source section!



For "The Simpsons" AI Assistant, you can ask questions like:

  • Question 1 : Who are the children of the simpsons?

  • Question 2 : What is the name of the dog of the simpsons?

Answer

The answer displayed in the card is a synthesized answer based on all the documents QAnswer has found for this question. The answer is based on a generative model, therefore each generated answer could be in different wording but contain always the same information.


tip

You can trigger re-generate to get a new answer by clicking on icon.


To further improve the performance of the responses, you can give feedback by clicking on or .


Additionally, you can also edit the generated answer by clicking on .

Documents

The documents displayed in the "Top extracts" part are the most relevant documents QAnswer found for this question you just typed. These documents are used during the process of generating the answer you see in the answer card.


tip

You can check where is the information used to answer this question by clicking:


You will see the exact information in original sources like shown below:

Task Settings

If you want to customize your Search Ai Assistant you can click on

You can customize the way your Ai assistant answers you by :

  • Filling the prompt settings : It will define its personality and you can follow the example provided in the default settings

  • Adjusting the LLM settings : you can choose the LLM that will power the answers, the answer length, its creativity level, the answer speed.

  • Adjusting the Retriver : you can choose the LLM reference level, add synonyms.

Prompt Settings

On prompt settings, you can define the personality of your AI assistant by using variables like {{bot_name}} or {{bot_answer_length}}. It allows you to personalize the answers you get from your AI assistant settings.

Press the / and you'll get the available variable list.

For example brief comes from the {{bot_answer_length}} variable you can set in the LLM settings of your AI Task.

LLM Settings

In the LLM settings, you can adjust the parameters of the LLM that will power your AI assistant like:

  • the LLM model used
  • the initial message
  • the answer length
  • the creativity level (temperature)
  • the answer speed

Retriever Settings

In the retriever settings, you can adjust the parameters of the retriever that will be used to retrieve relevant documents for your AI assistant. It contains:

  • the embedding model used (note this can only be changed at creation time of the AI Assistant)
  • The number of references passed to the LLM
  • the synonyms used to retrieve more relevant documents

Synonyms

In the synonyms settings, you can define groups of synonyms that will be used to retrieve more relevant documents.

  • Click on + Add synonym group to add a new group of synonyms.

  • Enter a word in the input field and press Enter or click the + button to add it to the list of synonyms.

  • You can only add a new group if there are no existing groups, or if the last one has at least one synonym and the input field is empty.

  • You can delete a group by clicking the

    button.

Query Expansion

Query expansion is used to reformulate user queries so that they include the necessary context for retrieving the correct documents. This is especially important when users ask follow-up questions or when queries involve time references.

Example

When a user asks a follow-up question, the system expands the query to include the context from the previous question.

  • First user query: When was the QA company founded?
  • Follow-up user query: Who is the CEO?
  • Expanded query: Who is the CEO of the QA company?

This ensures that the system correctly understands the entity being referred to and retrieves the relevant information.

By applying these rules, query expansion allows the system to interpret user intent more accurately and provide more relevant results.

Query Expansion Prompt

In most cases, the default prompt we provide will be sufficient to handle your use cases.
However, there may be situations where you want to adjust it for better precision.

For example, imagine a user asking:

  • “What did Simone Biles do recently?”

If your corpus contains documents about Simone Biles’ activities spanning multiple years, the retriever may struggle to identify the most relevant documents from such a vague query.

A practical way to solve this problem is to adapt the query expansion prompt so that it explicitly includes the time reference (for example, the current date or a specific period).

“Give me the latest news of [time period] [date/date range].”
For example:
When a user asks for the latest or most recent news about a specific topic, expand the query to include the current date.
For example:
“Give me the latest news of today” → “Give me the latest news of today 25th June Wednesday 2025”
“Latest news about the AI sector” → “Latest news about the AI sector 25th June 2025”
“Most recent news about climate change” → “Most recent news about climate change 25th June 2025”

When a user asks for the news in a time reference (e.g., “Give me the news of yesterday,” “news of last week,” “news of last month,” “news of last year”), expand the query to explicitly include the date or date range, using the format:
“Give me the latest news of this week” → “Give me the latest news of the week 25th June 24th June 23rd June 22nd June 21st June 2025”
“Give me the latest news of this year” → “Give me the latest news of the year 2025”
“Give me the latest news of this month” → “Give me the latest news of the month June 2025”
"Who was the mayor of New York in first part of the year 2024" → "Who was the mayor of New York in first part of the year 2024 January February March April May June"
"Who was the mayor of New York in the second part of the year 2024" → "Who was the mayor of New York in the second part of the year 2024 July August September October November December"

For factual queries that are time-sensitive (e.g., “Who is the current Prime Minister of India”), append the current date to the query:
“Who is the current Prime Minister of India 25th June 2025”
For queries that are not time-dependent or do not reference a specific time period (e.g., “Who is Lebron James”), do not modify the query.

INCOMING QUESTION:
{{question}}

Current Date:
{{date}}

Respond ONLY with the replaced query.

REPLACED QUESTION:

Advanced filters

You can choose to filter the documents used to answer your question by clicking on Advanced filters.


caution

The AI models we use are evolving over time so the answers that you get might be different.

If you have questions or you need any assistance, please contact us!

Join Us

We value your feedback and are always here to assist you.
If you need additionnal help, feel free to join our Discord server. We look forward to hearing from you!

Discord Community Server