You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Motivation and Context
microsoft#11086
### Description
Adding datetime & datetimeoffset support for CRUD operations with
Qdrant.
Also supporting filtering with legacy filter options, to test end to end
scenario.
LINQ based filtering to follow in separate PR.
### Contribution Checklist
<!-- Before submitting this PR, please make sure: -->
- [ ] The code builds clean without any errors or warnings
- [ ] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [ ] All unit tests pass, and I have added new tests where possible
- [ ] I didn't break anyone 😄
Payload={["HotelName"]="My Hotel 11",["HotelCode"]=11,["parking_is_included"]=true,["Tags"]=tagsValue,["HotelRating"]=4.5f,["Description"]="This is a great hotel."}
182
+
Payload={["HotelName"]="My Hotel 11",["HotelCode"]=11,["parking_is_included"]=true,["Tags"]=tagsValue,["HotelRating"]=4.5f,["Description"]="This is a great hotel.",["LastRenovationDate"]="2025-02-10T05:10:15.0000000Z",["OpeningDate"]="2025-02-10T05:10:15.0000000+01:00"}
Payload={["HotelName"]="My Hotel 13",["HotelCode"]=13,["parking_is_included"]=false,["Tags"]=tagsValue2,["Description"]="This is a great hotel."}
194
+
Payload={["HotelName"]="My Hotel 13",["HotelCode"]=13,["parking_is_included"]=false,["Tags"]=tagsValue2,["Description"]="This is a great hotel.",["LastRenovationDate"]="2020-02-01T00:00:00.0000000Z"}
Payload={["HotelName"]="My Hotel 11",["HotelCode"]=11,["parking_is_included"]=true,["Tags"]=tagsValue,["HotelRating"]=4.5f,["Description"]="This is a great hotel."}
213
+
Payload={["HotelName"]="My Hotel 11",["HotelCode"]=11,["parking_is_included"]=true,["Tags"]=tagsValue,["HotelRating"]=4.5f,["Description"]="This is a great hotel.",["LastRenovationDate"]="2025-02-10T05:10:15.0000000Z",["OpeningDate"]="2025-02-10T05:10:15.0000000+01:00"}
Payload={["HotelName"]="My Hotel 13",["HotelCode"]=13,["parking_is_included"]=false,["Tags"]=tagsValue2,["Description"]="This is a great hotel."}
225
+
Payload={["HotelName"]="My Hotel 13",["HotelCode"]=13,["parking_is_included"]=false,["Tags"]=tagsValue2,["Description"]="This is a great hotel.",["LastRenovationDate"]="2020-02-01T00:00:00.0000000Z"}
@@ -391,7 +397,7 @@ public async Task ItCanSearchWithFilterAsync(bool useRecordDefinition, string co
391
397
392
398
// Act.
393
399
varvector=awaitfixture.EmbeddingGenerator.GenerateEmbeddingAsync("A great hotel");
394
-
varfilter=filterType=="equality"?newVectorSearchFilter().EqualTo("HotelName","My Hotel 13"):newVectorSearchFilter().AnyTagEqualTo("Tags","t13.2");
400
+
varfilter=filterType=="equality"?newVectorSearchFilter().EqualTo("HotelName","My Hotel 13").EqualTo("LastRenovationDate",newDateTimeOffset(2020,02,01,0,0,0,TimeSpan.Zero)):newVectorSearchFilter().AnyTagEqualTo("Tags","t13.2");
0 commit comments