File tree Expand file tree Collapse file tree
EssentialCSharp.Chat.Tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11using EssentialCSharp . Chat . Common . Models ;
22using Microsoft . SemanticKernel . Connectors . PgVector ;
33
4- #pragma warning disable SKEXP0010 // PgVector APIs are experimental
5-
64namespace EssentialCSharp . Chat . Tests ;
75
86public class PgVectorConnectorTests
@@ -17,10 +15,12 @@ public class PgVectorConnectorTests
1715 public async Task GetCollection_WithBookContentChunk_DoesNotThrowTypeLoadException ( )
1816 {
1917 // Arrange — no real DB connection is needed; connections are only opened for actual queries
20- var store = new PostgresVectorStore ( "Host=localhost;Database=test;Username=test;Password=test" ) ;
18+ #pragma warning disable SKEXP0010 // PostgresVectorStore is experimental
19+ using var store = new PostgresVectorStore ( "Host=localhost;Database=test;Username=test;Password=test" ) ;
2120
2221 // Act — this triggers loading internal PostgresModelBuilder via PostgresCollection ctor
2322 var collection = store . GetCollection < string , BookContentChunk > ( "test-collection" ) ;
23+ #pragma warning restore SKEXP0010
2424
2525 // Assert
2626 await Assert . That ( collection ) . IsNotNull ( ) ;
You can’t perform that action at this time.
0 commit comments