Refined ai parser. Updated .env.example

This commit is contained in:
GeorgeWebberley 2026-03-01 12:28:05 +01:00
parent 42eaac6a39
commit 8baa31e07e
2 changed files with 8 additions and 2 deletions

View file

@ -16,3 +16,6 @@ STORAGE_SECRET_KEY=minioadmin
STORAGE_BUCKET=cases STORAGE_BUCKET=cases
STORAGE_REGION=us-east-1 STORAGE_REGION=us-east-1
STORAGE_FORCE_PATH_STYLE=true STORAGE_FORCE_PATH_STYLE=true
# AI Config
GOOGLE_API_KEY=your_gemini_api_key_here

View file

@ -11,10 +11,13 @@ const CaseMetadataSchema = z.object({
office: z.string().describe("The specific department, chamber, or administrative division within the court system."), office: z.string().describe("The specific department, chamber, or administrative division within the court system."),
court: z.string().describe("The court's full official name of the adjudicating body. Do not use relative references; instead, identify the institution from the document header, the formal seal, or the specific treaty/statute that establishes its jurisdiction."), court: z.string().describe("The court's full official name of the adjudicating body. Do not use relative references; instead, identify the institution from the document header, the formal seal, or the specific treaty/statute that establishes its jurisdiction."),
caseNumber: z.string().describe( caseNumber: z.string().describe(
"The formal administrative or legal identifier assigned to the matter." "The formal administrative or legal identifier assigned to the matter. " +
"Look for unique alphanumeric codes (often containing slashes, dashes, or prefixes like 'No.', 'Ref.', or 'Sag') " +
"usually located in the document header, top margin, or immediately following the title."
), ),
summary: z.string().describe( summary: z.string().describe(
"A concise brief of the dispute and the final determination." "A concise brief of the dispute and the final determination. " +
"Focus on 'The Issue' (what was being decided) and 'The Disposition' (the final ruling or outcome)."
), ),
}); });