Skip to content

lb search

Terminal window
lb search [query] [options]

lb search queries your knowledge graph and returns matching nodes. When no query is provided, results are returned in recency order. Use filters to narrow by PARA tag, status, or free-form tags.

OptionTypeDefaultDescription
--para <id>stringFilter to nodes tagged with this PARA item ID.
--status <status>stringFilter by node status (active, archived).
--tags <tags>stringComma-separated tag names to filter by.
--limit <n>number20Maximum number of results to return.
--page <n>number1Page number for pagination.
--mode <mode>stringhybridSearch mode: keyword, semantic, or hybrid.
--jsonflagOutput raw JSON.
--api-url <url>stringOverride the API base URL.
ModeDescription
keywordFull-text search using SQLite FTS5. Exact and prefix matches. Fast, no vector index required.
semanticVector similarity search using embeddings. Finds conceptually related content even when keywords differ.
hybridReciprocal Rank Fusion of keyword and semantic results. Best recall for most queries. Default.

Full-text search:

Terminal window
lb search "authentication flow"

Semantic search for related concepts:

Terminal window
lb search "how tokens expire" --mode semantic

Filter by PARA item:

Terminal window
lb search "API design" --para proj_abc123

Paginate through results:

Terminal window
lb search "database" --limit 10 --page 2

Filter by status and output as JSON:

Terminal window
lb search --status active --json | jq '.[].title'

Combine filters:

Terminal window
lb search "observability" --tags monitoring,tracing --limit 5