Skip to content

Commit 3550341

Browse files
api changes reverted
1 parent 98f855c commit 3550341

1 file changed

Lines changed: 8 additions & 66 deletions

File tree

App/frontend-app/src/components/chat/chatRoom.tsx

Lines changed: 8 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -354,45 +354,6 @@ export function ChatRoom({ searchResultDocuments, selectedDocuments, chatWithDoc
354354
<div
355355
dangerouslySetInnerHTML={{ __html: response.answer }}
356356
/>
357-
{/* <div className={`mr-2 mt-2 ${styles["attachment-tag-container"]}`}>
358-
{response.sources?.map((reference, index) => {
359-
if (reference) {
360-
return (
361-
<div>
362-
<Tooltip
363-
content={{
364-
children: reference.chunk_text
365-
? reference.chunk_text
366-
: t("components.chat.no-information"),
367-
className: customStyles.tooltipContent,
368-
}}
369-
relationship="description"
370-
positioning="below"
371-
withArrow
372-
>
373-
<div>
374-
<AttachmentTag
375-
key={index}
376-
className={`mr-2 mt-2 ${styles["attachment-tag"]}`}
377-
onClick={() =>
378-
handleOpenReference(
379-
reference.parent_id,
380-
response.sources?.map(
381-
(ref) => ref.chunk_text
382-
) || []
383-
)
384-
}
385-
media={<DocumentOnePageLink20Regular />}
386-
>
387-
{reference.title}
388-
</AttachmentTag>
389-
</div>
390-
</Tooltip>
391-
</div>
392-
);
393-
}
394-
})}
395-
</div> */}
396357
{response.suggestingQuestions?.filter((o) => o).length > 0 && (
397358
<div>
398359
<p className="mt-6">{t("components.chat.suggested-q-title")}</p>
@@ -414,33 +375,14 @@ export function ChatRoom({ searchResultDocuments, selectedDocuments, chatWithDoc
414375

415376
{!isLoading && (
416377
<div className="mt-6">
417-
{/* <FeedbackButtons
418-
positiveFeedbackButton={{
419-
onClick: () =>
420-
handlePositiveFeedback(
421-
response.sources ? response.sources : []
422-
),
423-
}}
424-
negativeFeedbackButton={{
425-
onClick: () =>
426-
handleOpenFeedbackForm(
427-
response.sources ? response.sources : []
428-
),
429-
}}
430-
style={{ display: "flex", flexDirection: "row-reverse" }}
431-
/> */}
432-
433-
<div style={{ display: "flex", flexDirection: "row-reverse" }}>
434-
{/* <Tag size="extra-small">
435-
{t("components.dialog-content.ai-generated-tag-incorrect")}
436-
</Tag> */}
437-
<Tag
438-
size="extra-small"
439-
className="!bg-transparent !text-gray-500 !border-none !p-0 !flex !flex-row-reverse"
440-
>
441-
{t("components.dialog-content.ai-generated-tag-incorrect")}
442-
</Tag>
443-
</div>
378+
<div style={{ display: "flex", flexDirection: "row-reverse" }}>
379+
<Tag
380+
size="extra-small"
381+
className="!bg-transparent !text-gray-500 !border-none !p-0 !flex !flex-row-reverse"
382+
>
383+
{t("components.dialog-content.ai-generated-tag-incorrect")}
384+
</Tag>
385+
</div>
444386
</div>
445387
)}
446388

0 commit comments

Comments
 (0)