Skip to content

perf: bound embedding dimension validation - #16

Merged
GQAdonis merged 1 commit into
mainfrom
codex/bound-embedding-dimension-validation
Sep 20, 2026
Merged

GQAdonis merged 1 commit into
mainfrom
codex/bound-embedding-dimension-validation

Conversation

@GQAdonis

Copy link
Copy Markdown
Contributor

Server startup selected every full embedding vector from the entity and memory tables to validate dimensions. On the deployed database this produced a 50 MB response and prevented the REST API from binding under swap pressure.

This change computes array lengths inside SurrealDB and transfers only record IDs and integer dimensions. Existing mismatch errors and validation coverage remain unchanged.

Validation:

  • live SurrealQL projection returned dimension 384
  • cargo test --locked -p surreal-memory embedding_dimension_validation_never_projects_vectors
  • openspec validate bound-embedding-dimension-validation --strict
  • cargo fmt --all --check
  • isolated artifact critic round 2: PASS

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 20, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-20T18:03:32.557561Z b1cdac6 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@GQAdonis
GQAdonis merged commit 7d71b99 into main Sep 20, 2026
1 check passed
@GQAdonis
GQAdonis deleted the codex/bound-embedding-dimension-validation branch September 20, 2026 18:00
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