Skip to content

Enhance README with detailed project overview - #57

Closed
krish1925 wants to merge 36 commits into
mainfrom
krish1925-patch-1
Closed

krish1925 wants to merge 36 commits into
mainfrom
krish1925-patch-1

Conversation

@krish1925

Copy link
Copy Markdown
Owner

Expanded the README to clarify the purpose and functionality of Isotrieve, detailing how it enables upgrading embedding models without re-embedding the entire corpus. Added sections on the problem it solves, how it works, and its target audience.

krish1925 and others added 30 commits February 7, 2026 02:02
Ridge regression, other matrix optimizations, added langchain support
Major rewrite from agent-communication protocol to embedding migration toolkit.

Core:
- RidgeMapping, ProcrustesMapping, LowRankAffineMapping, ResidualMLPMapping
- QueryAdapter serve mode (zero corpus writes, instant rollback)
- QualityGate v2 with isotonic regression prediction
- CLI: plan, calibrate, transform, inspect
- Store adapters: NumpyFileStore, QdrantStore
- Migration with resumability

Benchmarks:
- Adapter comparison (Ridge 86.6%, LowRank 85.7%, MLP 71.9%)
- K-sweep (500-4000, monotonic improvement)
- Same-dim pair (bge->e5, 90.8% retention with e5 prefixes)
- Gate model trained on 48 benchmark results

Agent discovery:
- AGENTS.md for coding agent context
- llms.txt + llms-full.txt for doc retrieval indexes
- Optimized PyPI keywords for agent search
- Searchable error messages with fix suggestions

53 tests passing. Apache-2.0 license.
Phase 1 (B1/B2/E): README restructured, CHANGELOG, aecp.toml config,
   playbooks (ada-002→te3-small/large), when-reembedding-is-impossible doc
Phase 2 (A1/A2/A3): LlamaIndex query wrapper, OpenAI client shim,
   opt-in local telemetry (AECP_TELEMETRY=local)
Phase 3 (C1/C2/C3): Pinecone shadow-namespace adapter, Qdrant
   checkpointed in-place adapter, LlamaIndex storage-context migration
Phase 4 (D): Gate CLI (retention table, bootstrap CIs, exit codes),
   HTML gate report, GitHub Actions composite gate action, --queries-only
Phase 5 (B3): Doctor CLI (inspect store, suggest playbooks),
   Report CLI (wrapper usage summary, graduation commands)
Phase 6: Shared test fakes (FakeEmbedder, FakeOpenAIClient, etc.),
   89 tests passing, ruff clean (B008 excluded — standard typer pattern)
…ion, CLI fixes

- ChromaDB + LangChain adapters with drop-in shims
- QueryAdapter serve mode (in-process, zero corpus writes)
- QualityGate v2 with proxy-based prediction and LOPO intervals
- Score recalibration (isotonic regression) and confidence scoring
- CLI: plan, gate, migrate, verify, serve-snippet commands
- PyPI trusted-publisher workflow
- Updated release script for v0.2.0
- 65 core tests passing
… results

- CLAIMS.md: Ridge/LowRank/MLP retention numbers corrected from K=4000 to K=3840
  (the K that actually produced the 0.871 number; K=4000 gives 0.866)
- README.md: adapter comparison table updated to K=3840 values
- README.md: K-sweep K=4000 corrected from 0.814 to 0.817 (was averaging
  across two model pairs due to glob match; fixed to MiniLM→bge only)
- Anti-patterns MLP reference updated to match new numbers
Expanded the README with detailed sections on the problem, how AECP works, package installation, vector store adapters, claims and benchmarks, prior art, status, and license information.
Added flowcharts to illustrate the calibration and migration process.
- Add meta description + Open Graph tags to all 6 website pages
- Add sitemap.xml and robots.txt
- Set canonical URLs on all pages
- README: add natural keyword coverage for search terms
  (ada-002 to text-embedding-3, embedding migration, ridge regression,
  vector database migration, serving mode)
- Add use-case examples to README intro
…ing, section tracking

- Rewrite integrations.html with proper card layout (header + 2-column body)
- Each card: install command + serve/offline examples side by side
- CSS syntax highlighting for Python (keywords, strings, numbers, comments)
- Copy buttons on all code blocks (via existing JS)
- TOC links in hero with active section tracking
- Notes strip per integration with feature checkmarks
- Responsive: collapses to single column on mobile
- New section for store-agnostic API usage pattern
- docs.css: add max-width, box-sizing to pre blocks; set font-family
  explicitly; remove overflow:hidden on docs-main that clipped content
- performance.html: add one-liner explainer in hero explaining what
  benchmarks measure; fix K=4000 retention from 0.814 to 0.817
  (matches CLAIMS.md)
…ox entries

From agent memory literature analysis:
- Embedding translation ≠ summarization: change of coordinates, not
  lossy compression. Failure mode is distorted map, not discarded info.
  Gate measures retrieval retention, not summary fidelity.
- Probe-based evaluation: test exact identifiers (error codes, file paths,
  legal citations) alongside nDCG@10 in domain matrix (#37)
- Icebox: belief-state modality (#45), retrieval-aware calibration (#46)
- Silent measurement drift is a documented production failure class
  (OpenClaw token-counting bug) — validates verify + gate story
Root causes:
1. Lint: pyproject.toml missing ruff ignores (B008, B904, B905, E501,
   E402, SIM105, SIM108) that were on the PR branch but not on
   development. Added per-file ignores for mapping/__init__ and tests.
2. Typecheck: numpy 2.5 stubs use PEP 695 'type' statements (Python
   3.12+ syntax) but mypy was configured with python_version=3.10.
   Updated to python_version=3.12 to match CI runner, dropped strict
   mode, added ignore_missing_imports and per-module overrides for
   optional-dependency modules lacking type stubs.
3. Lint: pre-existing unused variables, unsorted imports, undefined
   name (Distance in qdrant_store), deprecated typing imports. Fixed
   all 63 ruff errors across src/ and tests/.
4. Format: ran ruff format on 34 files with style drift.
- Implement generate_gate_html for self-contained HTML gate reports
  (was empty stub — gate --format html now produces a real report)
- Re-run all benchmarks: Ridge K=4000 0.871±0.006, LowRank 0.857±0.009,
  MLP 0.727±0.007, bge→e5 same-dim 0.923±0.010
- Update CLAIMS.md with verified dates, fresh artifacts, K=4000 rows
- Update README.md adapter comparison and K-sweep with fresh numbers
- Update thresholds.json rationale with benchmark-backed defaults
- Commit fresh benchmark artifacts under benchmarks/results/
Test hygiene:
- chromadb tests: pytest.importorskip at module level, skip migrate_collection
- langchain tests: pytest.importorskip at module level
- Result: 97 passed, 6 skipped, 0 failed (was 97 pass / 13 fail)

Deploy policy:
- Pages workflow now deploys from main (not development)
- Docs describe released code, not in-flight development

Gate defaults:
- Add scenario-calibrated retention expectations to aecp doctor output
- Same-family: 0.85-0.93, cross-family: 0.78-0.87, same-dim: 0.90-0.95
- Clarifies WARN means pair needs more calibration, not tool is broken
GitHub organization:
- Add CI workflow (lint, test matrix 3.10-3.13, typecheck)
- Add PR template with checklist (tests, ruff, CLAIMS.md, CHANGELOG)
- Add issue templates (bug report, feature request, playbook request)
- Add dependabot config (pip + GitHub Actions, weekly)

Documentation:
- Root CONTRIBUTING.md now points to aecp-python/CONTRIBUTING.md
- Add project structure section to README
- Add CI + docs badges to README
- Mark aecp-npm as historical/experimental in README header
- Clarify which package is current (PyPI aecp, not NPM)
- Direction: migration CI for vector stores, differentiate on gate
  not transform (commodity). Accumulating domain × model-pair
  validation results is the long-term moat.
- Falsification: 60-day review after v0.4.0, measure gate engagement
  < 20% = reposition as best adapter library with honest benchmarks
- Bans: '3-month cliff' framing, uncited research synthesis claims
- Agent memory documented-but-unpushed 2027+ market
The WS-D interval-widening logic computed variance of L2-normalized
self-similarity, which is always 0 — margin compression never triggered,
silently disabling the safety margin.

Fix: compute cosine similarities between paired mapped→target vectors
and compare variance to random target→target pairs. Returns a meaningful
ratio (< 1 = compression) that correctly triggers interval widening.

Tests (5 new, all pass):
- test_margin_compression_returns_float_not_none: proves old bug
- test_margin_compression_compressed_case: ratio < 1 when compressed
- test_margin_compression_good_case: ratio > 0.1 when preserved
- test_interval_widening_triggers: interval widens when mc < 0.85
- test_gate_report_exposes_margin_compression: field in report

102 passed, 6 skipped, 0 failed
fix: gate margin compression always returned None (#8)
… CLAIMS.md drift (#9, #10, #12)

- qdrant_store: normalize flat list into single-batch iterator, use
  _all_batches() generator instead of materializing list
- chroma adapter: enumerate-based metadata enrichment for None rows
- CLAIMS.md: add Actual values with seed-by-seed benchmark numbers
- tests/test_release.py: 16 tests covering imports, core functionality,
  CLI entry points, version consistency
- .github/workflows/release.yml: tag-triggered build + PyPI publish via
  trusted publisher
Release v0.2.1 — Gate fixes, CI hardening, release tests
Krish Patel and others added 6 commits July 22, 2026 11:54
- Package: aecp → isotrieve (PyPI name)
- CLI: aecp → isotrieve
- File extension: .aecp → .isotrieve (magic: b'ISTR')
- All imports, classes, constants, env vars renamed
- Directories: aecp-python → isotrieve-python, etc.
- All tests passing: 118 passed, 6 skipped
- ruff, mypy clean
Expanded the README to clarify the purpose and functionality of Isotrieve, detailing how it enables upgrading embedding models without re-embedding the entire corpus. Added sections on the problem it solves, how it works, and its target audience.
@krish1925
krish1925 force-pushed the main branch 2 times, most recently from 579234b to caf22f8 Compare July 25, 2026 18:47
@krish1925 krish1925 closed this Jul 25, 2026
@krish1925
krish1925 deleted the krish1925-patch-1 branch July 25, 2026 18:47
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