From cb127f582de4802447b6974789f14a57aab5e04b Mon Sep 17 00:00:00 2001 From: Michelangelo Partipilo Date: Wed, 11 Jun 2025 14:45:59 +0200 Subject: [PATCH] Fix vector configuration --- src/Example/Program.cs | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/Example/Program.cs b/src/Example/Program.cs index ab77f30d..f40569ba 100644 --- a/src/Example/Program.cs +++ b/src/Example/Program.cs @@ -1,5 +1,6 @@ using System.Text.Json; using Weaviate.Client.Models; +using Weaviate.Client.Models.Vectorizers; namespace Example; @@ -76,17 +77,7 @@ static async Task Main() Console.WriteLine($"Error deleting collections: {e.Message}"); } - var vectorizerConfigNone = new VectorConfig - { - Vectorizer = new Dictionary - { - { - "none", - new object { } - }, - }, - VectorIndexType = "hnsw", - }; + var vectorizerConfigNone = Vector.Name("default"); var VectorConfigs = new Dictionary {