sensemaking 0.3.1 → 0.3.2
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/package.json
CHANGED
package/skills/sense/EXAMPLES.md
CHANGED
|
@@ -83,6 +83,7 @@ sense query "SELECT DISTINCT type FROM frontmatter" # what a field's values a
|
|
|
83
83
|
| `SELECT text FROM content` | dumps the vault into context | `snippet(content, -1, '«', '»', '…', 10)` |
|
|
84
84
|
| `sense find "pricing"` | one word misses synonyms | `"pricing OR billing OR invoicing"` |
|
|
85
85
|
| `sense find "pricing model details"` | bare words AND-join in FTS5; one absent word = zero rows | OR the words, or quote an exact phrase |
|
|
86
|
+
| `sense find "customer-facing OR on-site"` | bare punctuation is FTS5 syntax (`-` = column filter) | double-quote the terms: `"customer-facing" OR "on-site"` |
|
|
86
87
|
| `Read` a 4,000-token file for one section | 10× the tokens needed | `peek` first, `Read` the line range |
|
|
87
88
|
| queries without `LIMIT` | unbounded output | `LIMIT 10`, widen only if all rows look wrong |
|
|
88
89
|
| save every query to config | config churn for one-offs | ad-hoc `sense query`; save only reusable views |
|
package/skills/sense/SKILL.md
CHANGED
|
@@ -60,7 +60,9 @@ sense query "SELECT j.value, COUNT(*) n FROM frontmatter, json_each(frontmatter.
|
|
|
60
60
|
```
|
|
61
61
|
|
|
62
62
|
- `content MATCH` takes FTS5 syntax: `a OR b`, `"phrase"`, `pref*`, `NEAR(a b, 5)`,
|
|
63
|
-
`summary: term`. Stemmed; markdown stripped at index time.
|
|
63
|
+
`summary: term`. Stemmed; markdown stripped at index time. Double-quote any term with
|
|
64
|
+
punctuation — bare `customer-facing` errors (`-` reads as a column filter), bare
|
|
65
|
+
apostrophes are syntax errors: write `"customer-facing"`, `"founder's"`.
|
|
64
66
|
- Rank with `ORDER BY bm25(content, 10.0, 5.0, 1.0)` (title > summary > body); excerpt with
|
|
65
67
|
`snippet(content, -1, '«', '»', '…', 10)`.
|
|
66
68
|
- Select `content.title`/`content.summary` (always exist, empty when absent) rather than
|