@yurtsever/capsa 0.1.0-alpha.7 → 0.1.0-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/dist/index.js +457 -190
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -55,7 +55,8 @@ Once published, `npx capsa …` replaces the `node packages/cli/dist/index.js
|
|
|
55
55
|
| Kind | Where | Ranking signals |
|
|
56
56
|
|---|---|---|
|
|
57
57
|
| Instruction files | `CLAUDE.md`, `AGENTS.md`, `.cursorrules`, `.cursor/rules/*.mdc`, `SKILL.md` | kind |
|
|
58
|
-
|
|
|
58
|
+
| Docs / wiki | `docs/**/*.md`, `wiki/**/*.md` | recency, kind |
|
|
59
|
+
| Runbooks | `runbooks/**/*.md`, `docs/runbooks/**/*.md` | recency |
|
|
59
60
|
| Decisions | `docs/adr/**/*.md`, `decisions/**/*.md` | recency, kind |
|
|
60
61
|
| Tickets | `tickets/**/*.md`, `docs/tickets/**/*.md` | **status** from checkboxes or `status:` frontmatter, recency |
|
|
61
62
|
| Plans | `plans/**/*.md` | status, recency |
|
|
@@ -64,7 +65,7 @@ Adding a source is one adapter package (`packages/adapter-*`) — the scanner do
|
|
|
64
65
|
|
|
65
66
|
## How retrieval works
|
|
66
67
|
|
|
67
|
-
Vector search (bge-m3 via Ollama, [sqlite-vec](https://github.com/asg017/sqlite-vec)) and full-text search (FTS5) are fused with reciprocal rank fusion, then weighted by what the source can honestly claim about itself: how recent it is, whether it is still live (`in-progress` beats `done`), and what kind of knowledge it is. Results are
|
|
68
|
+
Vector search (bge-m3 via Ollama, [sqlite-vec](https://github.com/asg017/sqlite-vec)) and full-text search (FTS5) are fused with reciprocal rank fusion, then weighted by what the source can honestly claim about itself: how recent it is, whether it is still live (`in-progress` beats `done`), and what kind of knowledge it is. Results are taken in score order until the score falls below half of the best or the next one no longer fits the token budget, whichever comes first — at most two chunks per file.
|
|
68
69
|
|
|
69
70
|
All of it lives in one SQLite file per project, `.capsa/index.db`. Every weight is a hypothesis; the `context_log` table is how they get corrected.
|
|
70
71
|
|