Skip to content

Releases

Kosha v0.2.0

Choose a tag to compare

@devin-ai-integration devin-ai-integration released this 29 Nov 04:55
ba59559

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
    capped total_hits with 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-request k1/b.
  • Fuzzy terms (#201), prefix and glob filters (#585), nested attributes,
    rank_by modifiers and geo_distance (#212), diversification with
    limit_per (#211), and multi-field highlighting (#195).
  • Aggregations: metrics, histogram, date_histogram with calendar intervals
    and time zones, and percentiles (#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 /v1 API (#350), TypeScript and Go clients (#351), Python client
    get/mget/msearch (#198), and a CLI with import/admin commands (#224).
  • Agent retrieval: read for line, page and byte ranges (#586), the
    kosha-mcp MCP server (#584), and kosha-ingest for 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_ROUTES is 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, set KOSHA_POSTINGS_WRITE_VERSION=5 until every pod runs 0.2.0.
  • Authentication is on by default. The server will not start without
    KOSHA_API_KEY (or Postgres keys) unless KOSHA_AUTH=disabled.

Full diff: v0.1.0...v0.2.0

Image: docker pull decoverai/kosha:0.2.0

Python client 0.4.0

Choose a tag to compare

@github-actions github-actions released this 29 Nov 06:14
a8d96d5
  • Packaging: the distribution now carries this README as its PyPI description, and the wheel
    no longer installs a top-level tests package. 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.
  • AgentTools and the kosha-mcp MCP server (stdio and streamable HTTP), behind the new
    mcp extra (issue #584), with glob (#585) and read (#586) tools. See "Agent tools and
    the MCP server".
  • kosha-ingest: PDF/DOCX/HTML/text ingestion with page boundaries, behind the new ingest
    extra (issue #587). See "Ingesting PDF, DOCX and HTML files".