Skip to content

fix: resolve examples startup failures on arm64#7

Open
deangoodmanson wants to merge 1 commit intodevelopfrom
fix/pgvector-examples
Open

fix: resolve examples startup failures on arm64#7
deangoodmanson wants to merge 1 commit intodevelopfrom
fix/pgvector-examples

Conversation

@deangoodmanson
Copy link
Collaborator

Summary

  • Use pgvector/pgvector:pg17 image for the postgres service so the vector extension is available when running ./docker up --examples
  • Add platform: linux/amd64 for py-std-worker to suppress the emulation warning on Apple Silicon
  • Remove ivfflat index on document_chunksvector(3072) (OpenAI text-embedding-3-large) exceeds pgvector's 2000-dimension index limit; sequential scan is fine for the examples dataset
  • Fix health CLI to parse flat "ok" strings from /health/ready — the readiness endpoint returns {"database": "ok"} but the parser expected {"database": {"status": "healthy"}}, causing database to always show as unknown

Test plan

  • ./docker clean && ./docker up --examples starts without errors on arm64 (Apple Silicon)
  • ./docker exec kruxiaflow /kruxiaflow health reports ✅ database (not ❓ unknown)
  • cargo test -p kruxiaflow health passes

Notes

The orchestrator check in the health CLI still reports ❓ Not reported in readiness check — this is a pre-existing gap (the orchestrator runs as an internal Tokio task with no health reporting into AppState). Tracked separately.

🤖 Generated with Claude Code

- Use pgvector/pgvector:pg17 image so the vector extension is available
- Add platform: linux/amd64 for py-std-worker to suppress emulation warning
- Remove ivfflat index on document_chunks (vector(3072) exceeds 2000-dim limit)
- Fix health CLI to parse flat "ok" strings from readiness endpoint

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
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