Skip to content

Commit

Permalink
ui: remove old graph viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
634750802 committed Jun 4, 2024
1 parent 42f5689 commit bd2fd8b
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/components/chat/debug-info.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ export function DebugInfo ({ group }: DebugInfoProps) {
<WorkflowIcon className="inline w-3 h-3 mr-1" />
Langfuse Tracing
</a>
{graph_retriever?.enable && <a className="underline" target="_blank" href={traceUrlToGraphUrl(traceURL)}>
<WaypointsIcon className="inline w-3 h-3 mr-1" />
Knowledge Graph Viewer
</a>}
</div>}
{graph_retriever?.enable && <KnowledgeGraphDebugInfo group={group} />}
{graph_retriever?.top_k && <div className="mt-2"><b>Knowledge Graph Top K</b>: {graph_retriever.top_k}</div>}
Expand All @@ -50,15 +46,6 @@ export function DebugInfo ({ group }: DebugInfoProps) {
);
}

function traceUrlToGraphUrl (url: string | undefined) {
if (!url) {
return undefined;
}
const tokens = url.split('/');
const traceId = tokens[tokens.length - 1];
return `https://tidb-ai-graph-editor.vercel.app/?langfuse_trace=${traceId}`;
}

interface PromptDialogProps {
title: string;
prompt: string;
Expand Down

0 comments on commit bd2fd8b

Please sign in to comment.