Skip to content

Add swellsense process (chunk, embed, store) - #45

Merged
xquantize merged 2 commits into
developfrom
agent/stage-3-process
Oct 28, 2026
Merged

xquantize merged 2 commits into
developfrom
agent/stage-3-process

Conversation

@xquantize

Copy link
Copy Markdown
Owner

XQU-33: Slice 6 process() — clean, chunk, embed new/changed chunks, upsert into Postgres.

Acceptance criteria:

  • tests/test_process_run.py covers first run, second run (0 embedded), changed doc, model change, and one failing document; all in-memory with fakes
  • process() re-raises openai.APIError / APIConnectionError and psycopg.Error; still records ValueError in failed and continues
  • CLI process wires load_all, embed(..., "document"), connect, PostgresChunkStore; commits after a successful process(); one-line stderr + exit 1 on Postgres/Ollama unreachable, and does not commit on that path
  • tests/test_cli.py covers Postgres-unreachable and Ollama-down (APIError/APIConnectionError)
  • docs/plans/stage-3.md Slice 6 ticked; README and AGENTS.md commands/layout/roadmap stage 3 updated
  • bash scripts/check.sh prints CHECK PASSED
  • Files vs develop are only: src/swellsense/processing/run.py, src/swellsense/cli.py, tests/test_process_run.py, tests/test_cli.py, README.md, AGENTS.md, docs/plans/stage-3.md
  • Round-1 commit e5df56f only changes run.py + the two test files

Review: all checks passed. check.sh: CHECK PASSED locally.

Made with Cursor

xquantize and others added 2 commits October 28, 2026 16:42
Wire the CLI to load data/raw, upsert into Postgres with hash-based skip,
and continue on per-document failures like ingest.

Co-authored-by: Cursor <cursoragent@cursor.com>
Document-level failures still land in failed[]; infrastructure errors reach the CLI exit path without commit.

Co-authored-by: Cursor <cursoragent@cursor.com>
@xquantize
xquantize merged commit f88e73a into develop Oct 28, 2026
1 check passed
@xquantize
xquantize deleted the agent/stage-3-process branch October 28, 2026 03:50
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