feat(ui/quiz): implement real-time global chapter quiz generation, submit results to database, and display dynamic statistics on dashboard #53
@@ -85,7 +85,8 @@ public class KnowledgeService : IKnowledgeService
|
||||
|
||||
using var dbContext = await _dbContextFactory.CreateDbContextAsync(cancellationToken);
|
||||
var normalizedText = text.Trim();
|
||||
var hash = ContentHasher.ComputeHash(normalizedText);
|
||||
var hashInput = $"{normalizedText}:{traceType}:{PromptVersion}";
|
||||
var hash = ContentHasher.ComputeHash(hashInput);
|
||||
|
||||
// 1. Check Cache
|
||||
var cached = await dbContext.SemanticKnowledgeCache
|
||||
|
||||
Reference in New Issue
Block a user