refactor-for-llama-parse #17

Merged
aetos merged 5 commits from refactor-for-llama-parse into main 2026-08-23 16:58:33 +00:00
2 changed files with 9 additions and 3 deletions
Showing only changes of commit 22e6603924 - Show all commits

View File

@@ -29,7 +29,13 @@ function computeProgressPercent(
let pct = 0;
if (seenSteps.has("raw_lines") || seenSteps.has("txn_blocks")) pct += 10;
if (
seenSteps.has("raw_lines") ||
seenSteps.has("txn_blocks") ||
seenSteps.has("llama_extract")
) {
pct += 10;
}
if (txnBlockCount > 0) {
const current = Math.max(liveCount, stepStats.txn_dicts ?? 0);

View File

@@ -26,7 +26,7 @@ export interface EmailSource {
txn_dicts_count?: number;
}
export type PipelineType = "heuristic" | "llm" | "llama_parser";
export type PipelineType = "heuristic" | "llm" | "llama_parse";
export interface FetchRequestCreate {
source: FileSource | EmailSource;
@@ -90,7 +90,7 @@ export interface ResolveAmbiguityPayload {
export type SSEEventStep =
| "load_content" | "raw_lines" | "txn_blocks" | "txn_dicts"
| "resume_extract" | "extract" | "paused" | "complete" | "enrich"
| "save_expenses" | "pipeline";
| "save_expenses" | "pipeline" | "llama_extract";
export type SSEEventStatus =
| "started" | "completed" | "skipped" | "paused" | "progress" | "failed";