Add flow to query history CSV (#2492)

This commit is contained in:
Chris Weaver
2024-09-18 07:23:56 -07:00
committed by GitHub
parent e662e3b57d
commit 4218814385
5 changed files with 34 additions and 2 deletions

View File

@@ -85,7 +85,8 @@ export default function QueryPage({ params }: { params: { id: string } }) {
<Text className="flex flex-wrap whitespace-normal mt-1 text-xs">
{chatSessionSnapshot.user_email || "-"},{" "}
{timestampToReadableDate(chatSessionSnapshot.time_created)}
{timestampToReadableDate(chatSessionSnapshot.time_created)},{" "}
{chatSessionSnapshot.flow_type}
</Text>
<Divider />

View File

@@ -1,4 +1,4 @@
import { Feedback } from "@/lib/types";
import { Feedback, SessionType } from "@/lib/types";
export interface QueryAnalytics {
total_queries: number;
@@ -40,6 +40,7 @@ export interface ChatSessionSnapshot {
messages: MessageSnapshot[];
persona_name: string | null;
time_created: string;
flow_type: SessionType;
}
export interface ChatSessionMinimal {
@@ -51,6 +52,7 @@ export interface ChatSessionMinimal {
persona_name: string | null;
time_created: string;
feedback_type: Feedback | "mixed" | null;
flow_type: SessionType;
}
export interface UsageReport {

View File

@@ -49,6 +49,7 @@ export type ValidStatuses =
| "not_started";
export type TaskStatus = "PENDING" | "STARTED" | "SUCCESS" | "FAILURE";
export type Feedback = "like" | "dislike";
export type SessionType = "Chat" | "Search" | "Slack";
export interface DocumentBoostStatus {
document_id: string;