Evalkeeper
    Preparing search index...

    Function Thumbs

    • Thumbs up or down on one AI answer, with "what was wrong?" after a thumbs down. Clicking the same thumb again takes the rating back. action is your server action; it gets targetId, rating, and reason (or clear=1), and looks the answer up itself.

      Parameters

      • __namedParameters: {
            action: (form: FormData) => Promise<void>;
            initial?: Rating | null;
            targetId: string;
        }

      Returns Element