chore: import upstream snapshot with attribution
CodeQL / Analyze (csharp) (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled

This commit is contained in:
wehub-resource-sync
2026-07-13 13:21:23 +08:00
commit b957a53def
5423 changed files with 863745 additions and 0 deletions
@@ -0,0 +1,37 @@
// Copyright (c) Microsoft. All rights reserved.
using System;
using Microsoft.Extensions.VectorData;
namespace SemanticKernel.Connectors.SqliteVec.UnitTests;
public class SqliteHotel<TKey>()
{
/// <summary>The key of the record.</summary>
[VectorStoreKey]
public TKey? HotelId { get; init; }
/// <summary>A string metadata field.</summary>
[VectorStoreData(IsIndexed = true)]
public string? HotelName { get; set; }
/// <summary>An int metadata field.</summary>
[VectorStoreData]
public int HotelCode { get; set; }
/// <summary>A float metadata field.</summary>
[VectorStoreData]
public float? HotelRating { get; set; }
/// <summary>A bool metadata field.</summary>
[VectorStoreData(StorageName = "parking_is_included")]
public bool ParkingIncluded { get; set; }
/// <summary>A data field.</summary>
[VectorStoreData]
public string? Description { get; set; }
/// <summary>A vector field.</summary>
[VectorStoreVector(Dimensions: 4, DistanceFunction = DistanceFunction.EuclideanDistance)]
public ReadOnlyMemory<float>? DescriptionEmbedding { get; set; }
}