Skip to content

Feature gate for embedding data#178

Draft
abkfenris wants to merge 1 commit into
mainfrom
phase-2a-feature-gate-embedded-data
Draft

Feature gate for embedding data#178
abkfenris wants to merge 1 commit into
mainfrom
phase-2a-feature-gate-embedded-data

Conversation

@abkfenris

@abkfenris abkfenris commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

Add embedded-data cargo feature (default) that wraps the
include_bytes!/flate2 path. py/cli build with defaults unchanged.
New ingestion methods accept YAML strings, JSON strings, or a
pre-deserialized Vec, letting the JS wasm receive data externally.
Knowledge struct Vec fields now have #[serde(default)] for partial-doc
ingestion. New nox session rust_test_no_embedded verifies the
no-embedded path (11 tests).


This is part 2 of 6 in a stack made with GitButler:

@abkfenris abkfenris mentioned this pull request Jun 24, 2026
@abkfenris abkfenris force-pushed the phase-1-js-build-optimization branch from 150f479 to 2d12990 Compare June 24, 2026 22:37
@abkfenris abkfenris force-pushed the phase-2a-feature-gate-embedded-data branch from a01a121 to 9b84003 Compare June 24, 2026 22:37
@github-actions

github-actions Bot commented Jun 24, 2026

Copy link
Copy Markdown

Javascript size report

Size
Base (main) 1069.3 KB
PR 1066.3 KB
Delta -3.1 KB (-0.3%)

✅ Size decreased -0.3%.

@abkfenris abkfenris force-pushed the phase-1-js-build-optimization branch from 2d12990 to a5ed33d Compare June 24, 2026 23:42
@abkfenris abkfenris force-pushed the phase-2a-feature-gate-embedded-data branch from 9b84003 to 2fb2382 Compare June 24, 2026 23:42
Base automatically changed from phase-1-js-build-optimization to main June 25, 2026 17:26
Add `embedded-data` cargo feature (default) that wraps the
include_bytes!/flate2 path. py/cli build with defaults unchanged.
New ingestion methods accept YAML strings, JSON strings, or a
pre-deserialized Vec, letting the JS wasm receive data externally.
Knowledge struct Vec fields now have #[serde(default)] for partial-doc
ingestion. New nox session rust_test_no_embedded verifies the
no-embedded path (11 tests).
@abkfenris abkfenris force-pushed the phase-2a-feature-gate-embedded-data branch from 2fb2382 to 65273d0 Compare June 25, 2026 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant