Index embed lookups and copy vectors by batch keys #121

Merged
Collaborator

Add schema v11's guarded received-order index and ids-first message and attachment lookups. Read copy pairs before bounded write transactions, push newly embedded vectors across accounts by copy key, and retain pass-start sweeps. Add lookup_seconds logging, regression tests, the embed benchmark, and documentation updates.

Validation: native package build succeeded; make model succeeded; filtered tests passed (454); make check passed (779 tests, clean audit).

SQLite 3.50.4 embed lookup-plus-copy medians: 0.596 ms at 150,000 messages and 0.572 ms at 300,000. Search medians, base → branch: unfiltered 288.121 → 301.210 ms; account 215.661 → 263.543 ms; sender 320.884 → 376.871 ms.

Closes #119
Co-Authored-By: gpt-6.1-sol noreply@openai.com

Add schema v11's guarded received-order index and ids-first message and attachment lookups. Read copy pairs before bounded write transactions, push newly embedded vectors across accounts by copy key, and retain pass-start sweeps. Add lookup_seconds logging, regression tests, the embed benchmark, and documentation updates. Validation: native package build succeeded; make model succeeded; filtered tests passed (454); make check passed (779 tests, clean audit). SQLite 3.50.4 embed lookup-plus-copy medians: 0.596 ms at 150,000 messages and 0.572 ms at 300,000. Search medians, base → branch: unfiltered 288.121 → 301.210 ms; account 215.661 → 263.543 ms; sender 320.884 → 376.871 ms. Closes #119 Co-Authored-By: gpt-6.1-sol <noreply@openai.com>
Add schema v11's guarded received-order index and ids-first message and attachment lookups. Read copy pairs before bounded write transactions, push newly embedded vectors across accounts by copy key, and retain pass-start sweeps. Add lookup_seconds logging, regression tests, the embed benchmark, and documentation updates.

Validation: native package build succeeded; make model succeeded; filtered tests passed (454); make check passed (779 tests, clean audit).

SQLite 3.50.4 embed lookup-plus-copy medians: 0.596 ms at 150,000 messages and 0.572 ms at 300,000. Search medians, base → branch: unfiltered 288.121 → 301.210 ms; account 215.661 → 263.543 ms; sender 320.884 → 376.871 ms.

Closes #119
Co-Authored-By: gpt-6.1-sol <noreply@openai.com>
Sign in to join this conversation.
No description provided.