Skip to content

Update Feb 15th#177

Merged
Deodat-Lawson merged 26 commits intostablefrom
main
Feb 15, 2026
Merged

Update Feb 15th#177
Deodat-Lawson merged 26 commits intostablefrom
main

Conversation

@Deodat-Lawson
Copy link
Owner

No description provided.

@vercel
Copy link

vercel bot commented Feb 15, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
pdr-ai-v2 Ready Ready Preview, Comment Feb 15, 2026 6:01pm

Copy link

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

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: 1d67a00320

ℹ️ 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 on lines +86 to +89
if (
(server.INNGEST_EVENT_KEY == null || server.INNGEST_EVENT_KEY.length === 0)
) {
throw new Error("INNGEST_EVENT_KEY is required in production");

Choose a reason for hiding this comment

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

P1 Badge Restrict INNGEST_EVENT_KEY check to Inngest production paths

This throws whenever INNGEST_EVENT_KEY is missing, even though JOB_RUNNER supports non-Inngest backends and the comment says the key is only required in production. Because env.server is parsed at startup, development or JOB_RUNNER=trigger-dev deployments will fail to boot before any dispatcher selection happens. Gate this check on NODE_ENV === "production" and/or JOB_RUNNER === "inngest" instead of enforcing it unconditionally.

Useful? React with 👍 / 👎.

Comment on lines +78 to +79
(!mimeType ||
mimeType === "application/pdf" ||

Choose a reason for hiding this comment

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

P1 Badge Route mime-less non-PDF files through ingestion adapters

Treating !mimeType as PDF here misroutes any upload that omits MIME metadata (e.g., .txt, .html, image files) into the PDF OCR pipeline instead of the ingestion adapters. Since mimeType is optional in the request/event shape, this causes valid non-PDF documents to hit routeDocument/normalizeDocument with the wrong processor and fail extraction.

Useful? React with 👍 / 👎.

Comment on lines +161 to +162
const data = (await resp.json()) as { embeddings: number[][] };
return data.embeddings;

Choose a reason for hiding this comment

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

P1 Badge Validate sidecar embedding size before persisting vectors

The sidecar response is parsed as embeddings-only and the returned vector size is never checked, but downstream storage/retrieval assumes vector(1536). If the sidecar model dimension differs (including the default sentence-transformer setup in this commit), inserts/casts will fail at runtime and document jobs will error after vectorization. Validate dimensions (or normalize/truncate/pad) before constructing vectorizedChunks.

Useful? React with 👍 / 👎.

@Deodat-Lawson Deodat-Lawson merged commit c661f1c into stable Feb 15, 2026
5 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