Closed robalexclark closed 3 weeks ago
The pull request introduces several changes across multiple vector collection classes. The ChromaVectorCollection
class updates the SearchByMetadata
method to a public access modifier and revises the exception message. The InMemoryVectorCollection
class modifies the SearchByMetadata
method to support asynchronous execution. The SqLiteVectorCollection
and SqLiteVectorDatabase
classes enhance resource management by adopting the new C# using
syntax. Minor changes include the addition of a newline in RedisVectorCollection
, while no significant alterations are made in that class or others regarding functionality.
File Path | Change Summary |
---|---|
src/Chroma/src/ChromaVectorCollection.cs | Changed SearchByMetadata from explicit interface implementation to public method; updated exception message. |
src/InMemory/src/InMemoryVectorCollection.cs | Updated SearchByMetadata to include async modifier; modified internal logic to use Task.Run for non-blocking execution and improved cancellation handling. |
src/Sqlite/src/SqLiteVectorCollection.cs | Replaced traditional using blocks with C# 8.0 inline using syntax in multiple methods; restructured SearchByVector and SearchByMetadata for clarity. |
src/Sqlite/src/SqLiteVectorDatabase.cs | Restructured command creation in multiple methods to use using statements; added index creation command in CreateCollectionAsync for optimizing searches. |
src/Redis/src/RedisVectorCollection.cs | Added a newline character at the end of the file; no other changes. |
SearchByMetadata
method to the SqlLiteVectorCollection
, related to modifications in the ChromaVectorCollection
.SearchByMetadata
method in the InMemoryVectorCollection
, aligning with changes made to method accessibility in the main PR.🐇 In the code where vectors play,
Chroma's methods found their way.
With async calls and clearer sights,
Our database now shines so bright!
So hop along, let’s code and cheer,
For every change brings us near! 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
SearchByMetadata
method inChromaVectorCollection
for broader access.InMemoryVectorCollection
for better performance.SqLiteVectorDatabase
to optimize metadata searching.Bug Fixes
ChromaVectorCollection
.Refactor
SqLiteVectorCollection
andSqLiteVectorDatabase
.