VectorSetSimilaritySearchResult.cs from StackExchange/StackExchange.Redis
// Source: https://github.com/StackExchange/StackExchange.Redis | License: MIT | Copyright 2014 Stack Exchange
// Provided via justclaw.it.com; keep this notice with the code.
using System.Diagnostics.CodeAnalysis;
namespace StackExchange.Redis;
/// <summary>
/// Represents a result from vector similarity search operations.
/// </summary>
public readonly struct VectorSetSimilaritySearchResult(RedisValue member, double score = double.NaN, string? attributesJson = null)
{
/// <summary>
/// The member name/identifier in the vectorset.
/// </summary>
public RedisValue Member { get; } = member;
/// <summary>
/// The similarity score (0-1) when WITHSCORES is used, NaN otherwise.
/// A score of 1 means identical vectors, 0 means opposite vectors.
/// </summary>
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key