+ {!lastQuestionRef.current ? (
+
+
+
Chat with your data
+ Ask anything or try an example
+
+
+ ) : (
+
+ {answers.map((answer, index) => (
+
+
+
+
onShowCitation(c, index)}
+ onThoughtProcessClicked={() => onToggleTab(AnalysisPanelTabs.ThoughtProcessTab, index)}
+ onSupportingContentClicked={() => onToggleTab(AnalysisPanelTabs.SupportingContentTab, index)}
+ onFollowupQuestionClicked={q => makeApiRequest(q)}
+ showFollowupQuestions={useSuggestFollowupQuestions && answers.length - 1 === index}
+ />
+
+
+ ))}
+ {isLoading && (
+ <>
+
+
+ >
+ )}
+ {error ? (
+ <>
+
+
+
makeApiRequest(lastQuestionRef.current)} />
+
+ >
+ ) : null}
+
+
+ )}
+
+
+ makeApiRequest(question)}
+ />
+
+
+
+ {answers.length > 0 && activeAnalysisPanelTab && (
+