Repository navigation
Releases
Releases · decover-tech/kosha
Kosha v0.2.0
About 345 PRs since 0.1.0. The headline changes:
Durability on S3
- S3 WAL mode (
KOSHA_WAL_MODE=s3): acknowledged writes survive losing the
ingest node (#236). - Manifest publication by compare-and-swap, writer-scoped WAL checkpoints, and
a writer lease with fencing tokens so two writers cannot both publish (#230,
#254). - Durable deletes and upserts: persisted deletion vectors and mark-and-append
replaces instead of whole-segment rewrites. - Segment commit marker and checksum verification (#231); segment GC retires
superseded segments and deletion-vector generations. - Automatic size-tiered background compaction with an async job API (#242).
BM25 at scale
- Block-max WAND top-k for single- and multi-term queries, OR mode, and
cappedtotal_hitswith exact counting off by default. - Postings formats v5 (skip pointers, positions split from scoring) and v6
(bit-packed scoring blocks, default since #580). - Ranged S3 reads into a persisted span cache, lazy segment open, columnar
filters, usage-driven warm-up, and a whole-response result cache. - Warm BM25 on 10M MS MARCO passages: 29 ms p50, 1.7 ms with the result cache
(docs/benchmarks.md).
Vector and hybrid search
- SPFresh/LIRE ANN index, maintained by compaction (#253).
- i8 scalar quantization with f32 rescoring (#210) and RaBitQ 1-bit posting
codes (vector index v5). - Filtered kNN with exact search for selective filters (#252), multiple vector
columns (#204), late-interaction multi-vector retrieval (#205), and
schema-declared embedding models (#209). - Hybrid retrieval with RRF fusion over namespace-wide ranks, plus a rerank
hook.
Query features
- Configurable, versioned analyzers with a Unicode tokenizer (#220, #221),
namespace-level BM25 statistics, per-field weighted BM25 (#249), and
per-requestk1/b. - Fuzzy terms (#201),
prefixandglobfilters (#585), nested attributes,
rank_bymodifiers andgeo_distance(#212), diversification with
limit_per(#211), and multi-field highlighting (#195). - Aggregations: metrics,
histogram,date_histogramwith calendar intervals
and time zones, andpercentiles(#219). - Read-your-writes over the unindexed tail (#255).
Multi-tenant service, API and clients
- Tenant isolation, fair search queues, per-tenant memory accounting and
limits (#341, #342). - Organizations, users, roles, projects and audit log (#345); scoped,
expiring, hashed API keys with rotation (#346); durable deletion records
(#347); usage metering (#348). - SSE-KMS on every S3 write with optional per-tenant keys (#343), mTLS between
pods, TLS to Postgres, and an HTTP server on hyper with TLS. - Versioned
/v1API (#350), TypeScript and Go clients (#351), Python client
get/mget/msearch(#198), and a CLI with import/admin commands (#224). - Agent retrieval:
readfor line, page and byte ranges (#586), the
kosha-mcpMCP server (#584), andkosha-ingestfor PDF/DOCX/HTML (#587). - Separate ingest, query and indexer roles (
KOSHA_ROLE), with query pods
following published manifests.
Upgrading from 0.1.0
- Namespaces created before tenant scoping (#262) must be moved with
migrate-namespace(see docs/configuration.md, "Migrating pre-#262
namespaces"). - The unversioned Phase 1 routes (
/index,/search, ...) return 410 unless
KOSHA_LEGACY_ROUTESis on or the tenant is in
KOSHA_LEGACY_ROUTES_TENANTS(docs/api/versioning.md). - 0.2.0 writes postings v6, which 0.1.0 cannot read. To keep rollback to 0.1.0
possible, setKOSHA_POSTINGS_WRITE_VERSION=5until every pod runs 0.2.0. - Authentication is on by default. The server will not start without
KOSHA_API_KEY(or Postgres keys) unlessKOSHA_AUTH=disabled.
Full diff: v0.1.0...v0.2.0
Image: docker pull decoverai/kosha:0.2.0
Python client 0.4.0
- Packaging: the distribution now carries this README as its PyPI description, and the wheel
no longer installs a top-leveltestspackage. 0.3.1 was tagged but never reached PyPI
(the release check failed on the missing description), so this is the first 0.3+ release
on PyPI; 0.2.x clients cannot index or search against a server with the legacy routes off,
which is the default. AgentToolsand thekosha-mcpMCP server (stdio and streamable HTTP), behind the new
mcpextra (issue #584), withglob(#585) andread(#586) tools. See "Agent tools and
the MCP server".kosha-ingest: PDF/DOCX/HTML/text ingestion with page boundaries, behind the newingest
extra (issue #587). See "Ingesting PDF, DOCX and HTML files".