Skip to main content

Chat

Like a conversation, Chat section allows you to interact with the AI Assistant you just built!

info

Additional Resources

Master data retrieval with QAnswer’s Chat Interface! Check out our 1-minute tutorial for fast, accurate insights through intuitive chat-based querying.

caution

As soon as you close or refresh the page, the AI Assistant Chat will forget all about your previous interaction.

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

info

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



The response of AI assistant is a synthesized answer based on all the documents QAnswer has found for last chat message you sent. 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.


You can clear the conversation 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 .

Task Settings

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

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

  • Changing the prompt in the prompt editor : Adpapt how the AI assistant will behave.

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

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

Prompt Editor

The prompt editor allows you to fully customize the behavior of your AI assistant. You can define the personality of your AI assistant, how it should respond to queries, what style it should use and many more. By using slots variables like {{bot_name}} or {{bot_answer_length}} you can inject dynamic values into the prompt.

Press the / and you'll get the available variable list. Refer to the slots section for more information on how to use them.

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 section dedicated to synonyms 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.

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