Skip to content

2.11.0

Latest

Choose a tag to compare

@Laurianti Laurianti released this 07 Oct 13:34
· 13 commits to main since this release

ChromaDotNet.Client and ChromaDotNet.Client.DependencyInjection 2.11.0, released together.

New

  • ChromaConfigurationOptions.WithChromaCloud() says the server is Chroma Cloud behind a proxy or another address, for the rules of Chroma Cloud.

Changes of behavior

  • A record without metadata keys comes back with an empty Metadata, not null, when the read includes the metadatas.
  • AddAsync, UpdateAsync and UpsertAsync throw an ArgumentException for a metadata without keys and for a list of values of more than one type, as the Python client does.
  • GetAsync throws an ArgumentOutOfRangeException for a negative limit or offset, and returns no record for a limit of 0 without a request.
  • A write that fails after some of its batches went says how many records went, and a collection client made by name does not run it again.
  • With deleteRecordsFirst, records that the server returns after their delete make the client throw a ChromaException and keep the collection.
  • ChromaQuery.NResults rejects a negative number.

Fixes

  • An id condition sends each id once.
  • CreateCollectionAsync and GetOrCreateCollectionAsync reject the names . and ...
  • A connection string takes http and https endpoints only.
  • The weight of the text in ChromaRank.HybridRrf never goes below 0.
  • AddKeyedChromaClient gives each key its own HttpClient, and a null key throws an ArgumentNullException.

NuGet: https://www.nuget.org/packages/ChromaDotNet.Client/2.11.0 and https://www.nuget.org/packages/ChromaDotNet.Client.DependencyInjection/2.11.0