Skip to content

v0.109.0

Latest

Choose a tag to compare

@github-actions github-actions released this 01 Dec 18:59

Added

  • PostgreSQLOptions.HnswIterativeScan · HnswEfSearch · HnswMaxScanTuples - the pgvector search settings the store applies to every vector search (see Fixed).

Fixed

  • Breaking by observation: IndexChunksAsync stores each chunk under the Id you gave it. The conversion from DocumentChunkModel to the stored chunk dropped the id, so every chunk got a new generated one and a caller could not find its own chunk by the id it had assigned (the stores already keep a given id, "Chunk identity" in docs/REFERENCE.md). A chunk with no Id still gets a generated one. Migration: chunks that share an Id now share one stored row (the last one written wins) - give each chunk its own id, or leave it empty; the PostgreSQL store keeps an id that is not a UUID in the row's metadata and maps it to a deterministic UUID key, so the id you read back is the one you gave.
  • Breaking by observation: with AutoMigrate off the PostgreSQL store no longer creates the fluxindex_vector_identity table. The table that records which embedding model wrote the vectors was created on first use whatever AutoMigrate said, so a schema kept by an external tool, with an application role that may not create tables, failed or got a table nobody planned. With AutoMigrate off nothing is created: reads find no record, writes proceed, and one warning says the identity is not recorded (a store bound to another model is then not refused). Migration: add CREATE TABLE fluxindex_vector_identity (store_key text PRIMARY KEY, identity_record text NOT NULL) to the schema you manage to turn the check back on.
  • A metadata-filtered vector search on PostgreSQL returns topK rows when that many match. Once the planner picked the HNSW index the filter was applied to the candidates the scan returned (hnsw.ef_search, 40 by default), so a filter matching a small share of the table came back short or empty while thousands of rows matched (an unfiltered topK of 50 returned 40). The plain and the quantized store now run each search with pgvector's iterative scan on (hnsw.iterative_scan, set for that search only), so the scan continues until the limit is met. PostgreSQLOptions.HnswIterativeScan chooses StrictOrder (default), RelaxedOrder or Off (pgvector's own behaviour), HnswEfSearch and HnswMaxScanTuples set the scan's candidate and row limits. Needs pgvector 0.8.0: an older one is searched as before and one warning names it. Migration: none to keep the new result; set HnswIterativeScan = HnswIterativeScan.Off to keep the old behaviour.

Dependencies

  • Breaking: the Microsoft.Extensions.* 11 line. Re-pinned Microsoft.Extensions.Caching.Memory 10.0.14 -> 11.0.0, Microsoft.Extensions.Caching.StackExchangeRedis 10.0.14 -> 11.0.0, Microsoft.Extensions.Configuration.Binder 10.0.14 -> 11.0.0, Microsoft.Extensions.AI.Abstractions 10.11.0 -> 11.0.0, Microsoft.Extensions.DependencyInjection 10.0.14 -> 11.0.0, Microsoft.Extensions.DependencyInjection.Abstractions 10.0.14 -> 11.0.0, Microsoft.Extensions.Hosting 10.0.14 -> 11.0.0, Microsoft.Extensions.Hosting.Abstractions 10.0.14 -> 11.0.0, Microsoft.Extensions.Logging 10.0.14 -> 11.0.0, Microsoft.Extensions.Logging.Abstractions 10.0.14 -> 11.0.0, Microsoft.Extensions.Options 10.0.14 -> 11.0.0. The packages keep their net10.0 target; on a .NET 10 runtime an app now loads the 11.0 builds of System.Text.Json, System.Diagnostics.DiagnosticSource and the other packages these depend on, app-local over the runtime's own. Migration: a consumer that pins any of these at 10.x directly gets NU1605 on restore - move those pins to 11.0.0 in the same change.
  • Re-pinned sibling package(s) FileFlux 0.71.0 -> 0.72.0, FluxGuard.Remote 0.27.0 -> 0.28.0, FluxImprover 0.25.0 -> 0.26.0, LMSupply.Embedder 0.143.0 -> 0.144.0, LMSupply.Generator 0.143.0 -> 0.144.0, LMSupply.Reranker 0.143.0 -> 0.144.0.

Changed

  • With Microsoft.Extensions.DependencyInjection 11, a synchronous Dispose() of a container that holds an async-only service still throws, but now disposes the rest first. DI 10 stopped at the async-only service and left the services after it undisposed. DisposeAsync stays the only way to release an async-only service.