136 | {!lastQuestionRef.current ? (
137 |
138 |
139 |
Chat with your data
140 | Ask anything or try an example
141 |
142 |
143 | ) : (
144 |
145 | {answers.map((answer, index) => (
146 |
147 |
148 |
149 |
onShowCitation(c, index)}
154 | onThoughtProcessClicked={() => onToggleTab(AnalysisPanelTabs.ThoughtProcessTab, index)}
155 | onSupportingContentClicked={() => onToggleTab(AnalysisPanelTabs.SupportingContentTab, index)}
156 | onFollowupQuestionClicked={q => makeApiRequest(q)}
157 | showFollowupQuestions={useSuggestFollowupQuestions && answers.length - 1 === index}
158 | />
159 |
160 |
161 | ))}
162 | {isLoading && (
163 | <>
164 |
165 |
168 | >
169 | )}
170 | {error ? (
171 | <>
172 |
173 |
174 |
makeApiRequest(lastQuestionRef.current)} />
175 |
176 | >
177 | ) : null}
178 |
179 |
180 | )}
181 |
182 |
183 | makeApiRequest(question)}
188 | />
189 |
190 |
191 |
192 | {answers.length > 0 && activeAnalysisPanelTab && (
193 |