mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-04-08 03:48:14 +02:00
Fixed default feedback options
This commit is contained in:
parent
eb8708f770
commit
212353ed4a
@ -5,15 +5,19 @@ import { FeedbackType } from "../types";
|
||||
import { Modal } from "@/components/Modal";
|
||||
import { FilledLikeIcon } from "@/components/icons/icons";
|
||||
|
||||
const predefinedPositiveFeedbackOptions =
|
||||
process.env.NEXT_PUBLIC_POSITIVE_PREDEFINED_FEEDBACK_OPTIONS?.split(",") ||
|
||||
[];
|
||||
const predefinedNegativeFeedbackOptions =
|
||||
process.env.NEXT_PUBLIC_NEGATIVE_PREDEFINED_FEEDBACK_OPTIONS?.split(",") || [
|
||||
"Retrieved documents were not relevant",
|
||||
"AI misread the documents",
|
||||
"Cited source had incorrect information",
|
||||
];
|
||||
const predefinedPositiveFeedbackOptions = process.env
|
||||
.NEXT_PUBLIC_POSITIVE_PREDEFINED_FEEDBACK_OPTIONS
|
||||
? process.env.NEXT_PUBLIC_POSITIVE_PREDEFINED_FEEDBACK_OPTIONS.split(",")
|
||||
: [];
|
||||
|
||||
const predefinedNegativeFeedbackOptions = process.env
|
||||
.NEXT_PUBLIC_NEGATIVE_PREDEFINED_FEEDBACK_OPTIONS
|
||||
? process.env.NEXT_PUBLIC_NEGATIVE_PREDEFINED_FEEDBACK_OPTIONS.split(",")
|
||||
: [
|
||||
"Retrieved documents were not relevant",
|
||||
"AI misread the documents",
|
||||
"Cited source had incorrect information",
|
||||
];
|
||||
|
||||
interface FeedbackModalProps {
|
||||
feedbackType: FeedbackType;
|
||||
|
Loading…
x
Reference in New Issue
Block a user