-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into pydantic_update
- Loading branch information
Showing
25 changed files
with
453 additions
and
501 deletions.
There are no files selected for viewing
48 changes: 48 additions & 0 deletions
48
dotnet/src/IntegrationTests/Connectors/Memory/AzureAISearch/AzureAISearchHotel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
// Copyright (c) Microsoft. All rights reserved. | ||
|
||
using System; | ||
using System.Text.Json.Serialization; | ||
using Azure.Search.Documents.Indexes; | ||
using Azure.Search.Documents.Indexes.Models; | ||
using Microsoft.Extensions.VectorData; | ||
|
||
namespace SemanticKernel.IntegrationTests.Connectors.Memory.AzureAISearch; | ||
|
||
#pragma warning disable CS8618 | ||
|
||
public class AzureAISearchHotel | ||
{ | ||
[SimpleField(IsKey = true, IsFilterable = true)] | ||
[VectorStoreRecordKey] | ||
public string HotelId { get; set; } | ||
|
||
[SearchableField(IsFilterable = true, IsSortable = true)] | ||
[VectorStoreRecordData(IsFilterable = true, IsFullTextSearchable = true)] | ||
public string HotelName { get; set; } | ||
|
||
[SearchableField(AnalyzerName = LexicalAnalyzerName.Values.EnLucene)] | ||
[VectorStoreRecordData] | ||
public string Description { get; set; } | ||
|
||
[VectorStoreRecordVector(1536)] | ||
public ReadOnlyMemory<float>? DescriptionEmbedding { get; set; } | ||
|
||
[SearchableField(IsFilterable = true, IsFacetable = true)] | ||
[VectorStoreRecordData(IsFilterable = true)] | ||
#pragma warning disable CA1819 // Properties should not return arrays | ||
public string[] Tags { get; set; } | ||
#pragma warning restore CA1819 // Properties should not return arrays | ||
|
||
[JsonPropertyName("parking_is_included")] | ||
[SimpleField(IsFilterable = true, IsSortable = true, IsFacetable = true)] | ||
[VectorStoreRecordData(IsFilterable = true)] | ||
public bool? ParkingIncluded { get; set; } | ||
|
||
[SimpleField(IsFilterable = true, IsSortable = true, IsFacetable = true)] | ||
[VectorStoreRecordData(IsFilterable = true)] | ||
public DateTimeOffset? LastRenovationDate { get; set; } | ||
|
||
[SimpleField(IsFilterable = true, IsSortable = true, IsFacetable = true)] | ||
[VectorStoreRecordData] | ||
public double? Rating { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.