8000 Release 1.3.2 · neon-sunset/Pinecone.NET · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

1.3.2

Compare
Choose a tag to compare
@github-actions github-actions released this 21 Nov 10:22
· 62 commits to main since this release
97aa7e7

Changes

This release addresses an issue where working with vector metadata may be counter-intuitive. The following code is now legal:

var vector = new Vector
{
    Id = "new-vector",
    Values = await EmbedText("Hello, World!"),
    Metadata = new()
    {
        // Previously, this would either require .Select(v => (MetadataValue)v).ToArray()
        // or new MetadataValue[] { "one", "two", ...} 
        ["strings"] = new[] { "one", "two", "three" }
    }
};

// Also works for filters
var years = new MetadataMap
{
    ["year"] = new MetadataMap { ["$in"] = new[] { 1984, 2007 } }
};
var matches = await index.Query(values, topK: 5, filter: years);

📦 Dependencies

  • chore(deps): bump Google.Protobuf from 3.25.0 to 3.25.1 (PR #78) by @dependabot (bot)

🧰 Misc

  • feat+chore: improve metadata UX, specify ConfigureAwait(false) on all async calls and update project to C# 12 (PR #81)

Full Changelog: 1.3.1...1.3.2

Published with dotnet-releaser

0