Phase 6 — Pattern-example RAG pipeline #9

Open
opened 2026-08-08 19:36:42 +00:00 by wtclaude · 0 comments
Collaborator

Size: large · Conditional on Phase 5.5 passing · Depends on: Phase 5

Do not start this before the Phase 5.5 spike returns a go.

Scope

  • Repo fetch → tree-sitter AST-aware chunking → tagged upsert
  • Payload metadata per chunk: reference_tag, arch_tag, source_repo, file_path, chunk_type, last_indexed
  • search_pattern_examples(query, arch_tag?) — semantic search, optionally filtered to a named pattern
  • refresh_pattern_example(reference_tag) — re-runs fetch/chunk/embed/upsert and replaces prior vectors for that tag
  • No automatic re-fetching; re-indexing only on explicit trigger

Exit criterion

A named pattern's example repo is indexed and returns relevant code for a natural-language query; a refresh fully replaces prior vectors for that tag.

References

ADR-0011 (spike gate), ADR-0010 (embeddings)

Review notes

Naive chunking of source code retrieves poorly — AST-aware chunking is most of the cost here and is why the spike exists.

**Size:** large · **Conditional on Phase 5.5 passing** · **Depends on:** Phase 5 > Do not start this before the Phase 5.5 spike returns a go. ## Scope - Repo fetch → tree-sitter AST-aware chunking → tagged upsert - Payload metadata per chunk: `reference_tag`, `arch_tag`, `source_repo`, `file_path`, `chunk_type`, `last_indexed` - `search_pattern_examples(query, arch_tag?)` — semantic search, optionally filtered to a named pattern - `refresh_pattern_example(reference_tag)` — re-runs fetch/chunk/embed/upsert and **replaces** prior vectors for that tag - No automatic re-fetching; re-indexing only on explicit trigger ## Exit criterion A named pattern's example repo is indexed and returns relevant code for a natural-language query; a refresh fully replaces prior vectors for that tag. ## References ADR-0011 (spike gate), ADR-0010 (embeddings) ## Review notes Naive chunking of source code retrieves poorly — AST-aware chunking is most of the cost here and is why the spike exists.
wtclaude added this to the v1.0 — Agentic Bridle milestone 2026-08-08 19:36:42 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: whitlocktech/Agentic-Bridle#9
No description provided.