Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions docs/AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,15 @@ touch a page that shows a plan:
- grid cards on the home page only.
- Plain, direct sentences. Use "you". Avoid filler and marketing adjectives. Spell out a term the first time
(compressed sparse row) and link to the page that explains it.
- **Avoid em dashes (`—`) and awkward hyphenations.** Use commas, colons, parentheses, or two shorter sentences
instead of em dashes. Keep standard technical compounds (`read-only`, `in-memory`, `multi-hop`, `zero-copy`,
`variable-length`), but avoid forced compound modifiers like `in-flight`, `filtered-out`, `one-edge-per-source`,
or `capability-based` when plain wording reads more naturally.
- **Avoid colliding verbs and garden-path sentences.** Do not drop `that`/`which` when it puts two verbs back to
back (*"a newer format than Lance knows fails"*, *"a version cleanup deletes fails"*, *"whose variable the query
never reads runs"*). Rephrase so every sentence flows smoothly on the first read without forcing a double take.
- **No `github.io` links.** Always link to `https://lance.org/` for the Lance format and docs, and
`https://lancedb.com/docs/` for LanceDB.
- Use sentence-case headings, and keep page titles short; they appear in the navigation.
- Link between pages with relative Markdown links (`[CSR index](csr.md#inspecting-the-csr)`), which the
strict build checks.
Expand Down
2 changes: 1 addition & 1 deletion docs/benchmarks.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ uv run --no-sync python benchmarks/csr_expand.py --data /tmp/csr-bench --edges 1
| `named_hop_columns.py` | A named hop that returns a relationship column, against the join path, as the number of start nodes grows; a fixed-width and a string column |
| `csr_delta.py` | `checkout_latest()` with a delta against a full rebuild, after one append or delete commit (uses `csr_expand.py`'s data) |
| `csr_delta_accumulated.py` | `checkout_latest()` cost as deltas accumulate over many small commits (the basis of the 25% rebuild threshold) |
| `csr_persist.py` | Engine start-up with a stored CSR (`persist_csr=True`) against building it, including a delta on top of the stored version |
| `csr_persist.py` | Engine startup with a stored CSR (`persist_csr=True`) against building it, including a delta on top of the stored version |
| `shortest_path_batch.py` | Latency and peak memory of shortest paths between many bound endpoint pairs, in memory and over Lance |
| `engine_cache.py` | Engine construction, first-query, warm-query and `checkout_latest()` timings; can compare against upstream `lance_graph` |
| `bounded_memory.py` | Peak memory of streamed scans over Lance data larger than a memory cap (`generate`, then `run`) |
Expand Down
6 changes: 3 additions & 3 deletions docs/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ uv run --no-sync python ../docs/check_snippets.py csr.md # one page
```

The [TypeScript API reference](typescript-api.md) is generated with TypeDoc from the TSDoc comments and types in
`nodejs/src/`, into `nodejs/typedoc/api.md`, which the page includes. TypeDoc and the TypeScript version it
needs are pinned in `nodejs/typedoc/`, apart from the package's own tools. After changing the TypeScript API or
its comments, regenerate the page and commit it; CI fails when the committed copy is out of date:
`nodejs/src/`, into `nodejs/typedoc/api.md`, which the page includes. TypeDoc and its required TypeScript version are pinned in `nodejs/typedoc/`, separate from the package's own
build tools. After changing the TypeScript API or its comments, regenerate the page and commit it; CI fails when
the committed copy is out of date:

```bash
cd nodejs
Expand Down
593 changes: 230 additions & 363 deletions docs/csr.md

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions docs/cypher.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ vector operation.

## Read-only subqueries

Use `CALL { ... }` when a match, aggregation or `LIMIT` must run independently for each incoming row—for
example, finding each person's oldest friend:
Use `CALL { ... }` when a match, aggregation or `LIMIT` must run independently for each incoming row, for
example to find each person's oldest friend:

```python
print(engine.execute("""
Expand Down Expand Up @@ -186,8 +186,8 @@ RETURN length(p), nodes(p)
such as `(p)-[:KNOWS*1..2]-(f)-[:KNOWS]-(g)` do the same when the relationships are anonymous and typed, their
boundary labels resolve, and a shared CSR walk or bounded join chain (at most 64 branches) applies; separate
comma-separated paths in the same `MATCH` do not share history.
- **Reusing a relationship variable:** writing a bound variable again—such as `(a)-[r:KNOWS]->(b), (c)-[r]->(d)`,
in a later `MATCH`, or after `WITH r`—matches that same edge (`c = a`, `d = b`). The type may be omitted; a
- **Reusing a relationship variable:** writing a bound variable again (such as `(a)-[r:KNOWS]->(b), (c)-[r]->(d)`,
in a later `MATCH`, or after `WITH r`) matches that same edge (`c = a`, `d = b`). The type may be omitted; a
conflicting type matches nothing. Undirected reuse matches both orientations; if the first binding was
undirected, a later directed reuse follows the traversed direction. Reusing a relationship variable inside a
variable-length segment is unsupported.
Expand Down Expand Up @@ -281,7 +281,7 @@ RETURN count(DISTINCT p.id) > 0 AS present
```

On empty input, a global `count` returns `0` (so the query above returns one row with `present = false`), and
`count(DISTINCT value)` skips nulls and duplicates—including when a filter fixes the counted property to a
`count(DISTINCT value)` skips nulls and duplicates, including when a filter fixes the counted property to a
constant.

## Functions
Expand Down
Loading