Top Tweets for #AIProcessing
I'm still working on this. But here's what it was: All the sse events are handled in the functions. It is being changed so that a function that generates and sends the sse events will be passed in.
var result = await extractionService.ExtractAndProcessDocumentAsync(
documentStream,
fileName,
contentType,
stages,
stage =>
{
// Check if corpus is empty for this stage
var onboardingStage = Enum.Parse<OnboardingStage>(stage);
var existingCorpus = _corpusService.GetCorpusSectionAsync(userId, onboardingStage).Result;
return IsCorpusEmpty(existingCorpus, onboardingStage);
},
async (stage, data) =>
{
// Save corpus section
var onboardingStage = Enum.Parse<OnboardingStage>(stage);
await _corpusService.SaveCorpusSectionDirectAsync(userId, onboardingStage, data);
// Send stage completion event
var stageEvent = new {
message = $"[system] ✅ {stage} section updated successfully",
stage = stage,
method = "direct_insertion"
};
await Response.WriteAsync($"event: stage-completed\ndata: {JsonSerializer.Serialize(stageEvent)}\n\n");
await Response.Body.FlushAsync();
},
aiProcessingFunc,
aiExtractionFunc,
processor,
HttpContext.RequestAborted
);
Most Popular Users

Elon Musk 
@elonmusk
240M followers

Barack Obama 
@barackobama
118.6M followers

Cristiano Ronaldo 
@cristiano
114.4M followers

Donald J. Trump 
@realdonaldtrump
111.7M followers

Narendra Modi 
@narendramodi
106.9M followers

Rihanna 
@rihanna
98.6M followers

NASA 
@nasa
92.1M followers

Justin Bieber 
@justinbieber
91.7M followers

KATY PERRY 
@katyperry
89.9M followers

Taylor Swift 
@taylorswift13
83.9M followers

Lady Gaga 
@ladygaga
75.4M followers

Virat Kohli 
@imvkohli
73.3M followers

Kim Kardashian 
@kimkardashian
70.8M followers

YouTube 
@youtube
68.6M followers

Neymar Jr 
@neymarjr
66.3M followers

Bill Gates 
@billgates
65.2M followers

Selena Gomez 
@selenagomez
63M followers

The Ellen Show
@theellenshow
62.1M followers

CNN 
@cnn
61.7M followers

X 
@x
60.6M followers


