From 1d828d2a0f120a5b32cb03ec719dc1b22d21e3a2 Mon Sep 17 00:00:00 2001 From: John Oliver <1615532+johnoliver@users.noreply.github.com> Date: Fri, 23 Aug 2024 18:01:42 +0100 Subject: [PATCH] Add TPN file. Code format --- pom.xml | 14 ++++++++++++-- .../memory/AzureAISearch_DataStorage.java | 4 ++-- .../memory/InMemory_DataStorage.java | 6 +++--- .../syntaxexamples/memory/JDBC_DataStorage.java | 4 ++-- .../syntaxexamples/memory/Redis_DataStorage.java | 6 +++--- 5 files changed, 22 insertions(+), 12 deletions(-) diff --git a/pom.xml b/pom.xml index c301d7f9..f53e0e0d 100644 --- a/pom.xml +++ b/pom.xml @@ -1,6 +1,7 @@ - + 4.0.0 @@ -435,6 +436,15 @@ update-project-license + + add-third-party + + add-third-party + + + compile,runtime + + @@ -677,7 +687,7 @@ // Copyright (c) Microsoft. All rights reserved. - + diff --git a/samples/semantickernel-concepts/semantickernel-syntax-examples/src/main/java/com/microsoft/semantickernel/samples/syntaxexamples/memory/AzureAISearch_DataStorage.java b/samples/semantickernel-concepts/semantickernel-syntax-examples/src/main/java/com/microsoft/semantickernel/samples/syntaxexamples/memory/AzureAISearch_DataStorage.java index 946cadc6..86666dc2 100644 --- a/samples/semantickernel-concepts/semantickernel-syntax-examples/src/main/java/com/microsoft/semantickernel/samples/syntaxexamples/memory/AzureAISearch_DataStorage.java +++ b/samples/semantickernel-concepts/semantickernel-syntax-examples/src/main/java/com/microsoft/semantickernel/samples/syntaxexamples/memory/AzureAISearch_DataStorage.java @@ -127,8 +127,8 @@ public static void dataStorageWithAzureAISearch( var collection = azureAISearchVectorStore.getCollection( collectionName, AzureAISearchVectorStoreRecordCollectionOptions.builder() - .withRecordClass(GitHubFile.class) - .build()); + .withRecordClass(GitHubFile.class) + .build()); // Create collection if it does not exist and store data collection diff --git a/samples/semantickernel-concepts/semantickernel-syntax-examples/src/main/java/com/microsoft/semantickernel/samples/syntaxexamples/memory/InMemory_DataStorage.java b/samples/semantickernel-concepts/semantickernel-syntax-examples/src/main/java/com/microsoft/semantickernel/samples/syntaxexamples/memory/InMemory_DataStorage.java index 53904d57..80e6d490 100644 --- a/samples/semantickernel-concepts/semantickernel-syntax-examples/src/main/java/com/microsoft/semantickernel/samples/syntaxexamples/memory/InMemory_DataStorage.java +++ b/samples/semantickernel-concepts/semantickernel-syntax-examples/src/main/java/com/microsoft/semantickernel/samples/syntaxexamples/memory/InMemory_DataStorage.java @@ -103,9 +103,9 @@ public static void inMemoryDataStorage( String collectionName = "skgithubfiles"; var collection = volatileVectorStore.getCollection(collectionName, - VolatileVectorStoreRecordCollectionOptions.builder() - .withRecordClass(GitHubFile.class) - .build()); + VolatileVectorStoreRecordCollectionOptions.builder() + .withRecordClass(GitHubFile.class) + .build()); // Create collection if it does not exist and store data List ids = collection diff --git a/samples/semantickernel-concepts/semantickernel-syntax-examples/src/main/java/com/microsoft/semantickernel/samples/syntaxexamples/memory/JDBC_DataStorage.java b/samples/semantickernel-concepts/semantickernel-syntax-examples/src/main/java/com/microsoft/semantickernel/samples/syntaxexamples/memory/JDBC_DataStorage.java index 90e38e26..4a9c6d10 100644 --- a/samples/semantickernel-concepts/semantickernel-syntax-examples/src/main/java/com/microsoft/semantickernel/samples/syntaxexamples/memory/JDBC_DataStorage.java +++ b/samples/semantickernel-concepts/semantickernel-syntax-examples/src/main/java/com/microsoft/semantickernel/samples/syntaxexamples/memory/JDBC_DataStorage.java @@ -134,8 +134,8 @@ public static void dataStorageWithMySQL( String collectionName = "skgithubfiles"; var collection = jdbcVectorStore.getCollection(collectionName, JDBCVectorStoreRecordCollectionOptions.builder() - .withRecordClass(GitHubFile.class) - .build()); + .withRecordClass(GitHubFile.class) + .build()); // Create collection if it does not exist and store data List ids = collection diff --git a/samples/semantickernel-concepts/semantickernel-syntax-examples/src/main/java/com/microsoft/semantickernel/samples/syntaxexamples/memory/Redis_DataStorage.java b/samples/semantickernel-concepts/semantickernel-syntax-examples/src/main/java/com/microsoft/semantickernel/samples/syntaxexamples/memory/Redis_DataStorage.java index bb236788..10674365 100644 --- a/samples/semantickernel-concepts/semantickernel-syntax-examples/src/main/java/com/microsoft/semantickernel/samples/syntaxexamples/memory/Redis_DataStorage.java +++ b/samples/semantickernel-concepts/semantickernel-syntax-examples/src/main/java/com/microsoft/semantickernel/samples/syntaxexamples/memory/Redis_DataStorage.java @@ -122,9 +122,9 @@ public static void dataStorageWithRedis( String collectionName = "skgithubfiles"; var collection = vectorStore.getCollection(collectionName, - RedisJsonVectorStoreRecordCollectionOptions.builder() - .withRecordClass(GitHubFile.class) - .build()); + RedisJsonVectorStoreRecordCollectionOptions.builder() + .withRecordClass(GitHubFile.class) + .build()); // Create collection if it does not exist and store data List ids = collection