Ask follow-up questions of your data
https://{your-workspace-slug}.{region}.xata.sh/db/db_branch_name/tables/table_name/ask/session_idContinue 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
| Name | Description | In | Required | Schema |
|---|---|---|---|---|
db_branch_name | The DBBranchName matches the pattern | path | ✅ | string |
table_name | The Table name | path | ✅ | string |
session_id | path | ✅ | string |
Continue a Conversation With Your Data
POSThttps://{your-workspace-slug}.{region}.xata.sh/db/db_branch_name/tables/table_name/ask/session_idAsk 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;
};type AskTableSession = {
id?: string;
message: string;
};{
"message": "invalid API key"
}type AskTableSession = {
id?: string;
message: string;
};type AskTableSession = {
id?: string;
message: string;
};type AskTableSession = {
id?: string;
message: string;
};type AskTableSession = void;type AskTableSession = void;