Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.kiwifs.com/llms.txt

Use this file to discover all available pages before exploring further.

KiwiFS provides three tiers of search, from zero-dependency grep to semantic vector similarity. You can start simple and scale up without changing your data or workflow.

Tier 1: grep

Zero dependencies. Exact string matching. Works everywhere.
kiwifs serve --search grep
Best for small knowledge bases or environments where SQLite isn’t available.

Tier 2: SQLite FTS5 (default)

BM25-ranked full-text search powered by SQLite FTS5. Supports boolean operators, phrase matching, and path prefix filtering.
kiwifs serve --search sqlite
This is the default. KiwiFS builds and maintains a FTS5 index automatically. Searches are fast even with thousands of pages.

Query syntax

SyntaxExampleBehavior
Keywordspayment timeoutMatch pages containing both terms
Boolean ANDpayment AND timeoutExplicit AND
Boolean ORpayment OR billingMatch pages containing either term
Boolean NOTpayment NOT refundExclude pages containing a term
Phrase"payment timeout"Match the exact phrase
KiwiFS also offers trust-ranked search at /api/kiwi/search/verified. Pages with status: verified or source-of-truth: true in their frontmatter are boosted in results. Semantic similarity search using pluggable embedder providers and vector stores. Enable it in .kiwi/config.toml:
[search.vector]
enabled = true

[search.vector.embedder]
provider = "openai"
model = "text-embedding-3-small"
api_key = "${OPENAI_API_KEY}"

[search.vector.store]
provider = "sqlite-vec"

Supported embedders

ProviderNotes
OpenAItext-embedding-3-small, text-embedding-3-large
OllamaLocal models, no API key needed
Cohereembed-english-v3.0, multilingual variants
Vertex AIGoogle Cloud embeddings
BedrockAWS embeddings
Custom HTTPAny endpoint returning a vector array

Supported vector stores

StoreNotes
sqlite-vecEmbedded, zero config (default)
QdrantSelf-hosted or cloud
pgvectorPostgreSQL extension
PineconeCloud-hosted
WeaviateSelf-hosted or cloud
MilvusSelf-hosted or cloud

API endpoints

EndpointMethodDescription
/api/kiwi/searchGETFull-text search
/api/kiwi/search/verifiedGETTrust-ranked search
/api/kiwi/search/semanticGET, POSTVector similarity search
/api/kiwi/metaGETFrontmatter metadata query

MCP tools

ToolDescription
kiwi_searchFull-text search with pagination
kiwi_search_semanticVector similarity search
kiwi_query_metaFrontmatter metadata query
kiwi_queryDQL queries over metadata
See the Search API reference for detailed endpoint documentation.
Last modified on May 4, 2026