get https://gw.ask-ai.co/external-search/generative-answers/
The generative answer process within the Ask-AI API is managed through a state machine mechanism that begins once a question is submitted via the External Ask endpoint and if expect_direct_answer is True.
Flow Diagram

Steps
- After calling External Ask,
is_answerablewill beFalseand thestatuswill be:PENDING - Generative answer starts.
is_answerablewill beFalseandstatuswill beRUNNING - If the generative models successfully generate an answer:
is_answerablewill beTrueand thestatuswill beRUNNINGand theanswerwill begin to be populated with generated content- Once the generative answer will be done, the
statuswill beDONEand theis_answerablewill betrue
- Else (generative answer model is not able to generate an answer):
- The
is_answerablewill beFalseand thestatuswill be:DONE
- The
Understanding the States
PENDING: The question is queued and awaiting processing.RUNNING: Active processing is underway to generate an answer.DONE: The process has concluded. Theis_answerableflag indicates whether an answer was successfully generated.