Skip to content

Glossary

Key terms used in this documentation, in alphabetical order.

Background task

A response mode of iAsk. When is_background_task is true, iAsk returns 202 Accepted with a task_id immediately, and you poll GET /v1/tasks/{task_id} for the result. See Maira Integration.

Chat History Length

A profile setting that defines how many previous conversations in a session are used as context for a chat type conversation. See Profiles.

Client key

A credential used for client-to-server communication, for example by the Maira widget. See Credentials.

Context

The information Maira uses to give relevant and coherent responses, such as previous conversations in the session and the information provided in the profile. See Concepts.

Context preference

An iAsk option (context_preference) to prefer or exclude certain datasets, projects or other filterable keys when Maira builds the context. See Maira Integration.

Conversation

One query and its AI response, within a session. Each conversation has a conversation_id, which iAsk returns with the response. It is used for feedback, evaluation and deletion. See Sessions and Conversations.

Conversation summary

A summary that Maira generates from the conversations of a defined time period. You can edit summaries and use them to further train Maira. See Settings and Conversation Summary.

Conversation type

Defines whether Maira uses conversation history. chat keeps conversation history, so follow-up questions have context. question is stateless: each request stands alone. The default is question. See Maira Integration.

Credentials

The keys required to call Maira endpoints. Credentials are issued per project from the Maira Console. There are two types: the project key and API key pair, and the client key. See Credentials.

Dataset

A collection of documents, uploaded as a single file. Datasets are the information used to train Maira for your application. See Dataset Management.

Default profile

The profile used when a request does not specify a gpt_profile_id. It is defined in the Maira settings. See Settings and Conversation Summary.

Document

A single piece of information, such as a company address or a product description. A document always belongs to a dataset. See Concepts.

Evaluation

A score that shows how close in meaning a response is to the reference documents it was generated from. It is calculated after the response is generated, using cosine similarity, and is different from the similarity score. Evaluation can run automatically after each conversation, or manually for specified conversations. See Evaluation.

Feedback

A rating or comment on an AI response, sent with the conversation_id of that response. See Feedback.

Filterable fields

Fields of a dataset (filterable_fields) that you can use to filter the context during response generation, for example with context_preference. See Dataset Management.

iAsk

The endpoint POST /v1/maira/iask, used to send a query to Maira and get a response. It is the improved version of the legacy Ask endpoint, and accepts file attachments. See Maira Integration.

Member

The ID of a logged-in user (member_id). With a member_id, a user keeps their context on whichever device they log in from. See Concepts.

Profile

A stored configuration that guides how Maira processes a query and responds, including its instructions, model settings and the datasets to search. You can create multiple profiles and choose one per request with gpt_profile_id. See Profiles.

Project key and API key

A credential pair used for server-to-server communication. Every iAsk request sends them in the project-key and api-key headers. See Credentials.

Prompt

The complete set of instructions and text, including the query, that is sent to Maira to generate a response. See Concepts.

Query

The message or input that comes from the end user of your application. See Concepts.

Reference documents

The documents from which Maira extracted the information for a response. They are returned with the response, and help you check how much of the answer is based on your data. See Concepts.

Sandbox

An interactive page where you can find the field-level details of each endpoint and test them live. Open the sandbox.

Session

A thread of related conversations. If a request has no session_id, a new session is created; send an existing session_id to continue it. See Sessions and Conversations.

Similarity score

A score (similarity_score) given to each reference document, showing how closely it matches the user's query. It is calculated when Maira retrieves the reference documents, before the response is generated, and is different from the evaluation score. See Evaluation.

Streaming

A response mode of iAsk. When is_streaming is true, iAsk sends the answer as a Server-Sent Events stream, so you can show it while it is being generated. See Maira Integration.

Time series data

Datasets with time-related information, such as dates and timestamps, that Maira can query and calculate on accurately. Time series datasets do not require training. See Time series data.

Training

The process that prepares the documents of a dataset so that Maira can use them in responses. See Dataset Training.

User

A unique ID (user_id) given to each user of your application, whether they are logged in or not. It is required on every iAsk request. See Concepts.

Widget

A ready-made chat interface for Maira that you add to your website with a script tag. See Widget Integration.