Ask follow-up questions of your data

https://{your-workspace-slug}.{region}.xata.sh/db/db_branch_name/tables/table_name/ask/session_id

Continue a conversation with your data. This endpoint lets you continue a question started via the /ask endpoint in order to dive deeper into your context or ask clarifying questions.

Expected parameters

NameDescriptionInRequiredSchema
db_branch_name

The DBBranchName matches the pattern {db_name}:{branch_name}.

path✅string
table_name

The Table name

path✅string
session_id
path✅string

Continue a Conversation With Your Data

POST
https://{your-workspace-slug}.{region}.xata.sh/db/db_branch_name/tables/table_name/ask/session_id

Ask a follow-up question. If the Accept header is set to text/event-stream, Xata will stream the results back as SSE's.

Request Body Type Definition

type AskTableSession = {
    /**
     * The question you'd like to ask.
     *
     * @minLength 3
     */
    message?: string;
};

Responses

type AskTableSession = {
    /**
     * The answer to the input question
     */
    answer: string;
};