Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vNext #27

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## v2.0.0
## 2.0.1 (Future)

Added:

- Expose internal vector array of `VectorTextItem` from `VectorTextResultItem.Vectors` property, to make vector array accessible for consuming code in cases where access is required. This is mostly for more flexible usage of the library.

## v2.0.0 (2025-02-23)

Added:

Expand Down
2 changes: 1 addition & 1 deletion src/Build5Nines.SharpVector/Build5Nines.SharpVector.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<PackageId>Build5Nines.SharpVector</PackageId>
<PackageProjectUrl>https://github.com/Build5Nines/SharpVector</PackageProjectUrl>
<RepositoryUrl>https://github.com/Build5Nines/SharpVector</RepositoryUrl>
<Version>2.0.0</Version>
<Version>2.0.1</Version>
<Description>Lightweight In-memory Vector Database to embed in any .NET Applications</Description>
<Copyright>Copyright (c) 2025 Build5Nines LLC</Copyright>
<PackageReadmeFile>README.md</PackageReadmeFile>
Expand Down
5 changes: 5 additions & 0 deletions src/Build5Nines.SharpVector/VectorTextResultItem.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
using System.Collections.Immutable;

namespace Build5Nines.SharpVector;

public interface IVectorTextResultItem<TDocument, TMetadata>
Expand All @@ -23,6 +25,9 @@ public VectorTextResultItem(IVectorTextItem<TDocument, TMetadata> item, float ve

public TDocument Text { get => _item.Text; }
public TMetadata? Metadata { get => _item.Metadata; }

public ImmutableArray<float> Vectors { get => ImmutableArray.Create(_item.Vector); }

public float VectorComparison { get; private set; }
}

Expand Down
Loading