Skip to content

release: 0.2.5860 - #764

Merged
justrach merged 1 commit into
mainfrom
release/0.2.5860
Sep 27, 2026
Merged

justrach merged 1 commit into
mainfrom
release/0.2.5860

Conversation

@justrach

Copy link
Copy Markdown
Owner
  • semantic-index sends 100-item batches, eight in flight by default (CODEDB_SEMANTIC_INDEX_CONCURRENCY still overrides, 1-8).
  • Index builds back off on rate limits with doubling delays capped at 30s over ten attempts; interactive context calls are unchanged.
  • Version bump, changelog, release notes.

Verification: zig build test --summary all.

semantic-index sends 100-item batches with eight requests in flight by
default, cutting round trips for hosted index builds. Index builds now wait
out hosted rate limits with a doubling backoff capped at 30 seconds instead
of failing after a few quick retries. Interactive context calls still fail
fast to local results.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 27, 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-27T09:57:24.025329Z c73cb97 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c73cb97081

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/semantic.zig
// The hosted lane accepts at most 100 inputs per request, the provider's own
// batch ceiling. Larger batches cut per-item latency and round trips; query
// reranking stays bounded separately by `max_documents`.
pub const max_index_documents: usize = 100;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Bound custom-provider batches by the response limit

When a custom OpenAI-compatible endpoint uses 3072 or 4096 dimensions and the repository supplies a full batch, this raises the response to 100 JSON-float vectors while max_response_bytes remains a fixed 2 MiB; ordinary decimal embeddings can therefore overflow the response writer and make semantic-index fail, whereas the previous 25-item batches fit. Keep smaller batches for custom endpoints or calculate a safe batch size from dimensions and the response cap.

Useful? React with 👍 / 👎.

Comment thread src/semantic.zig
err == error.EmbeddingTimeout;
if (!retryable or attempt + 1 == max_index_embedding_attempts) return err;
const delay_ms = index_embedding_retry_base_ms << @intCast(attempt);
const delay_ms = indexRetryDelayMs(attempt);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Retry the calibration request during index builds

When the hosted lane is already returning 429, 5xx, or timeout responses as a build starts, the new retry loop is never reached because src/semantic_index.zig:714 still performs the required calibration through embedRemoteTexts directly. The entire index build consequently fails before its first chunk batch despite the advertised bounded backoff; route the calibration request through the same index-build retry path.

Useful? React with 👍 / 👎.

@justrach
justrach merged commit 28b45d2 into main Sep 27, 2026
3 checks passed
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