mirror of
https://github.com/NVIDIA/dgx-spark-playbooks.git
synced 2026-04-23 02:23:53 +00:00
Rename Traditional Graph to Graph Search and display times in seconds
- Rename "Traditional Graph" to "Graph Search" throughout UI - Performance Metrics card label - Answer section badge - Console logging - Display query times in seconds instead of milliseconds - Pure RAG: 11.09s (was 11090.00ms) - Graph Search: 11.09s (was 11090.00ms) - GraphRAG: 11.09s (was 11090.00ms) The new name "Graph Search" better describes the functionality, and seconds provide more intuitive performance comparison. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
3c39506b06
commit
56d15db148
@ -197,7 +197,7 @@ export default function RagPage() {
|
||||
}
|
||||
|
||||
// Call the LLM-enhanced graph query API
|
||||
console.log('✅ Using Traditional Graph + LLM approach');
|
||||
console.log('✅ Using Graph Search + LLM approach');
|
||||
queryMode = 'traditional';
|
||||
|
||||
// Get selected LLM model from localStorage
|
||||
@ -373,19 +373,19 @@ export default function RagPage() {
|
||||
{metrics.queryTimesByMode['pure-rag'] !== undefined && (
|
||||
<div className="flex justify-between">
|
||||
<span className="text-muted-foreground">Pure RAG:</span>
|
||||
<span className="font-medium">{metrics.queryTimesByMode['pure-rag'].toFixed(2)}ms</span>
|
||||
<span className="font-medium">{(metrics.queryTimesByMode['pure-rag'] / 1000).toFixed(2)}s</span>
|
||||
</div>
|
||||
)}
|
||||
{metrics.queryTimesByMode['traditional'] !== undefined && (
|
||||
<div className="flex justify-between">
|
||||
<span className="text-muted-foreground">Traditional Graph:</span>
|
||||
<span className="font-medium">{metrics.queryTimesByMode['traditional'].toFixed(2)}ms</span>
|
||||
<span className="text-muted-foreground">Graph Search:</span>
|
||||
<span className="font-medium">{(metrics.queryTimesByMode['traditional'] / 1000).toFixed(2)}s</span>
|
||||
</div>
|
||||
)}
|
||||
{metrics.queryTimesByMode['vector-search'] !== undefined && (
|
||||
<div className="flex justify-between">
|
||||
<span className="text-muted-foreground">GraphRAG:</span>
|
||||
<span className="font-medium">{metrics.queryTimesByMode['vector-search'].toFixed(2)}ms</span>
|
||||
<span className="font-medium">{(metrics.queryTimesByMode['vector-search'] / 1000).toFixed(2)}s</span>
|
||||
</div>
|
||||
)}
|
||||
</>
|
||||
@ -422,7 +422,7 @@ export default function RagPage() {
|
||||
<span className="text-xs px-2.5 py-1 rounded-full font-medium bg-nvidia-green/10 text-nvidia-green border border-nvidia-green/20">
|
||||
{currentParams.queryMode === 'pure-rag' ? 'Pure RAG' :
|
||||
currentParams.queryMode === 'vector-search' ? 'GraphRAG' :
|
||||
'Traditional Graph'}
|
||||
'Graph Search'}
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user