Skip to content

v0.12.0

Choose a tag to compare

@github-actions github-actions released this 22 Nov 18:40
· 1975 commits to main since this release
2f5fd23

Upgrading from 0.11.1

These changes can need a change in your code or data:

  • Importing gaik no longer reads .env or touches logging (#266). gaik loads .env the first time it reads its configuration, and never overrides a variable that is already set. Set GAIK_NO_DOTENV=1 to ignore any .env file. Scripts that read settings with os.getenv before calling gaik should call load_env_file() first.
  • Strict review is the default (#236). strict_review=True in ReportSynthesizer, report_writer.RunSettings and MultiSourceReportGenerator: a reviewer edit that cannot be applied raises. In a retry, an edit that sets answers stands only for the ids it lists, and an empty list resolves nothing (#313). Pass strict_review=False for the old behaviour.
  • A transcript with a missing stretch raises (#233). Transcriber(allow_partial=False) is the default. With allow_partial=True, a run where every chunk failed still raises, and result.failed_segments lists partial failures (#311).
  • Excel column names keep their header text in the tabular agent, as CSV columns do (#316): Määrä stays Määrä, Revenue (EUR) stays Revenue (EUR). Queries or code that used the old cleaned-up names (m_r, revenue_eur) need the real header. The schema text quotes names that need it.
  • US thousands are not read as decimals (#316). A column of 1,200, 3,450 is no longer turned into 1.2, 3.45, and 1 234,56 converts. A column of only three-decimal values such as 1,500 stays text, because it could be US thousands.
  • Files are checked by content (#252). A file whose content is not the type its name says is refused with FileTypeMismatchError. .xls is refused by the report generator up front, and DocxParser and DocumentClassifier refuse a Word 97-2003 .doc with a message to save as .docx (#312, #313). The RAG parsers check too (#320): a .txt or .md with a NUL byte in it is binary and is refused, where 0.11.1 read it with the byte replaced.
  • Re-indexing a document replaces its chunks (#250). Chunk ids come from the document and its text, and add(..., replace=True) and delete_document() exist. Run PgVectorStore.setup() once on an existing table to add the chunk_key column.
  • Conflicts are decided in code from source_precedence (#261), not by the model. The Knowledge Curator's summaries must not state numbers their quote does not give.
  • Transcript enhancement refuses a pass that changes digits or rewrites more than max_change_ratio (default 0.25) of the text (#267). The digit check has no opt-out. A pass that turns spoken numbers into digits, for example by a domain_rules line, or that rewrites 1 000 as 1000, keeps its input; the refusal is listed in refused_passes.
  • VisionParser.convert_pdf(clean_output=True) returns the unmerged per-page list when the cleanup reply was cut off at its token cap (#312), so do not assume one element. MultimodalParser sets ParseResult.truncated.
  • Existing RAG stores: rows written by 0.11.1 still search, but they have no chunk_key, so they are not replaced or deleted by replace=True or delete_document(). Run setup() and re-index to get that.
  • RAG answer citations are built from the retrieved chunks (#255). generate_with_citations() returns them, with the ones the model wrote dropped when no chunk backs them.
  • RAG scores are not comparable with runs before 0.10.0: the grading prompt changed in #176. Unscored metrics are left out of the mean and reported (RAGMetrics.failed, RAGItemResult.errors), so aggregates rise where failures used to count as 0 (#318).
  • Source tracing is stricter (#318). A date verifies only as its quote writes it, a sign must be written, a text value that holds a number its quote does not hold is check, and Finnish month names and klo times are read.
  • Strict Claude tool calls: bounds the provider drops are stated in each field's description. Only gaik's own explanation and score fields are fitted to their bounds; a caller's field that breaks a bound raises as before (#315).
  • TextToSpeech sends instructions only to gpt… speech models, or to another name with send_instructions=True. Azure gets response_format and speed (#311).
  • ParallelTranscriber's Azure audio endpoint: it now picks the same address as Transcriber, in the order azure_audio_endpoint, azure_endpoint, base_url. To send audio through a gateway, set azure_audio_endpoint (#311).
  • Gemini usage counts thinking tokens as completion tokens, so cost estimates go up (#315).

Fixes and improvements

  • Extractor (#317): a date already in the field's own format is read in that format (MM/DD/YYYY no longer swaps day and month). Enums keep list and number types. A flat record's list[dict] field gets typed rows, nullable when the task allows null. Blank numbers are repaired in every child collection. VisionExtractor verification entries name the file, and page counts within it. The date keyword fallback changes only text fields (#106). Saved schemas refuse a custom Decimal cleaner, and schema folders saved by 0.11.1 keep working.
  • Parsers (#312): Excel CSVs with ; in cp1252 or UTF-16, DOCX content controls and tracked insertions, negative number formats, stale workbook dimensions, a cut-off vision cleanup, DoclingParser .txt and tables.
  • Report generation (#313): reviewer edits land on the passage they mean or on none; DOCX, Docling, TIFF/BMP and table sources reach the writer as they are; a reused output folder removes only unchanged files this generator recorded.
  • RAG (#314): concurrent replacements of one document keep one version; Chroma 1.x updates chunks in place; PgVectorStore.close(timeout=) waits for a running call or raises TimeoutError.
  • LLM layer (#315): the Vertex EU fallback is kept per model and expires; LLMJudge shares it; one retry helper retries only transient errors; LiteLLM call-time addresses and ANTHROPIC_BASE_URL go through the endpoint check; DocumentClassifier(temperature=None).
  • SQL agents (#316): keys into partitioned tables name the table; calls whose arguments sqlglot would drop are refused, also on the compiled sqlglot build.
  • Transcription (#311): ParallelTranscriber works with Azure audio endpoints and gpt-4o-transcribe deployments, stops queued chunks after a failure, keeps short tails and refuses a file that is not media.
  • Logs name files by a tag, not by their path (#296, #305 items).
  • Solution Wizard (#306, #310): generic PoCs import each component's own classes, a report spec file's sections are passed on as written, local Whisper follows the governance flags, and the interactive runner takes --max-budget-usd.
  • Pre-release audit (#320):
    • DocxParser drops the placeholder of inline content controls.
    • RAGResponseEvaluator scores frames with repeated index labels row by row.
    • A decimal field with label choices takes those labels, and create_extraction_model leaves FieldSpec.enum as it was.
    • A flat record whose scalar field comes back as [] keeps its field rules.
    • A ParallelTranscriber config without a transcription_model (or with None or "") means Whisper: whisper on Azure, whisper-1 on OpenAI.
    • DoclingRagParser and VisionRagParser accept enable_table_structure=False.
    • The RAG parsers check a file's content and raise FileTypeMismatchError.
    • [N] next to a removed citation resolves, and page unknown cites a pageless chunk.
  • Agent skills (plugin 0.6.32): searching-documents, generate-structured-reports, parsing-documents and extracting-structured-data describe the behaviour above.

Not in this release, still open: #96 and #97 (date rules from the task text), #105 (readable ASCII field names). Small follow-ups are collected in #319.

What's Changed

  • Demo: Gemini 4 Carbon for the team; the Vision Extractor refuses CSC Aitta by @laguagu in #287
  • Demo: install gaik 0.11.1 in the API image by @laguagu in #288
  • feat(demo): Solution Wizard and AI Act screening on the home page's first screen; /solution-wizard compares the two wizards by @laguagu in #289
  • feat(demo): an account menu in the header shows who is signed in by @laguagu in #290
  • feat(demo): an optional cost limit for the first wizard's agent by @laguagu in #291
  • feat(demo): the header drops its GitHub link by @laguagu in #292
  • fix(demo): long runs show one progress indicator and can be stopped by @laguagu in #293
  • chore(demo): less noise and a few small fixes on the most visited views by @laguagu in #294
  • fix(demo-app): the Postgres agent's SQL runs on its own read-only role by @lappijan in #264
  • feat(schema-generator): a new schema can be compared with the approved one by @lappijan in #268
  • fix(parsers): a file whose content is not the type its name says is refused by @lappijan in #252
  • fix(rag): answer citations are built from the retrieved chunks by @lappijan in #255
  • fix(transcriber, parallel-transcriber): media tools open only the given local file by @lappijan in #232
  • fix(enhance-transcript): a pass that changes digits or rewrites the text is refused by @lappijan in #267
  • fix(demo): PostHog honours Do Not Track, as the privacy policy says by @laguagu in #297
  • Demo: Markdown table cells keep backslashes, and a schema key is logged as stored by @lappijan in #298
  • fix(api): /form/understand returns the page's own label beside the cleaned one by @lappijan in #295
  • fix(transcriber, parallel-transcriber): a transcript with a missing stretch is an error by default by @lappijan in #233
  • fix(report-synthesizer, report-writer, multi-source-report-generator): review is strict by default by @lappijan in #236
  • fix(rag): indexing a document again replaces its chunks by @lappijan in #250
  • fix(knowledge-curator): conflicts are decided in code from the source classes by @lappijan in #261
  • fix(config): importing gaik reads no .env file and leaves logging alone by @lappijan in #266
  • fix(parsers): log lines name a file by tag, not by its path by @lappijan in #296
  • Solution Wizard PoCs: family imports, the user's section spec, and spoken facts kept in audio by @lappijan in #306
  • Tests that can fail: a truncated page label, a CI job for the REST API, one test per date case, a real broken DOCX by @laguagu in #307
  • Skills and docs say what the code does: ef_search caps rows, input limits up front, saved schemas, examples load .env by @laguagu in #308
  • Demo: model fields suggest accepted names, refusals read as sentences, citations and scraper pages match the library by @laguagu in #309
  • Solution Wizard: local Whisper follows the governance flags, the runner's guard and budget, and Step 4.5 says which PoCs import the schema by @laguagu in #310
  • RAG: concurrent replacements keep one version, Chroma updates chunks in place, ids are checked before parsing by @laguagu in #314
  • Parsers: Excel CSVs keep their columns, DOCX content controls are read, negative formats and cut-off cleanups are handled by @laguagu in #312
  • Transcription and TTS: failed chunks are reported, Azure gets format and speed, gpt-4o Whisper deployments work, short tails are kept by @laguagu in #311
  • Report generation: reviewer edits land on the right passage, sources reach the writer as they are, strict review matches retries by id by @laguagu in #313
  • LLM layer: Vertex fallback per model, strict Claude bounds, a shared retry helper, LiteLLM call addresses checked by @laguagu in #315
  • Extractor: dates keep their own format, enums keep list and number types, flat list fields stay flat by @laguagu in #317
  • SQL agents: US thousands are not read as decimals, Excel headers keep their letters, partition keys name the table, dropped arguments caught in every parser by @laguagu in #316
  • Evaluators and source tracing: each metric reads its own flag, numbers compare as numbers, dates match only as written by @laguagu in #318
  • fix: pre-release audit findings for 0.12.0 by @laguagu in #320
  • chore(release): wizard and agent skills for gaik 0.12.0 by @laguagu in #321
  • test(wizard): budget test independent of CI's empty Foundry variables by @laguagu in #322

Full Changelog: v0.11.1...v0.12.0