Skip to content

Commit 15336bd

Browse files
committed
fix formatting
1 parent 7bdca92 commit 15336bd

File tree

4 files changed

+12
-19
lines changed

4 files changed

+12
-19
lines changed

src/Weaviate.Client/Configure/Vectorizer.cs

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -356,16 +356,11 @@ public static VectorConfigBuilder Text2VecDatabricks(
356356
}
357357
);
358358

359-
public static VectorConfigBuilder Text2VecGpt4All(
360-
bool? vectorizeCollectionName = null
361-
) =>
359+
public static VectorConfigBuilder Text2VecGpt4All(bool? vectorizeCollectionName = null) =>
362360
new(
363-
new Vectorizer.Text2VecGpt4All
364-
{
365-
VectorizeCollectionName = vectorizeCollectionName,
366-
}
367-
);
368-
361+
new Vectorizer.Text2VecGpt4All { VectorizeCollectionName = vectorizeCollectionName }
362+
);
363+
369364
public static VectorConfigBuilder Text2VecHuggingFace(
370365
string? endpointURL = null,
371366
string? model = null,
@@ -436,16 +431,14 @@ public static VectorConfigBuilder Text2VecMistral(
436431
}
437432
);
438433

439-
public static VectorConfigBuilder Text2VecModel2Vec(
440-
bool? vectorizeCollectionName = null
441-
) =>
434+
public static VectorConfigBuilder Text2VecModel2Vec(bool? vectorizeCollectionName = null) =>
442435
new(
443436
new Vectorizer.Text2VecModel2Vec
444437
{
445438
VectorizeCollectionName = vectorizeCollectionName,
446439
}
447-
);
448-
440+
);
441+
449442
public static VectorConfigBuilder Text2VecOllama(
450443
string? apiEndpoint = null,
451444
string? model = null,

src/Weaviate.Client/Models/Vectorizer.Declarations.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,8 @@ public partial record Text2VecGpt4All : VectorizerConfig
231231

232232
public Text2VecGpt4All()
233233
: base(IdentifierValue) { }
234-
}
235-
234+
}
235+
236236
/// <summary>
237237
/// The configuration for text vectorization using the HuggingFace module.
238238
/// See the documentation for detailed usage.

src/Weaviate.Client/Models/Vectorizer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,10 +238,10 @@ public partial record Multi2VecNvidia
238238
public partial record Text2VecMistral
239239
{
240240
public string? BaseURL { get; set; } = null;
241-
public string? Model { get; set; } = null;
241+
public string? Model { get; set; } = null;
242242
public bool? VectorizeCollectionName { get; set; } = null;
243243
}
244-
244+
245245
public partial record Text2VecModel2Vec
246246
{
247247
public bool? VectorizeCollectionName { get; set; } = null;

src/Weaviate.Client/Models/Vectorizers/Factory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ internal static class VectorizerConfigFactory
2323
{ Vectorizer.Text2VecAzureOpenAI.IdentifierValue, typeof(Vectorizer.Text2VecAzureOpenAI) },
2424
{ Vectorizer.Text2VecCohere.IdentifierValue, typeof(Vectorizer.Text2VecCohere) },
2525
{ Vectorizer.Text2VecDatabricks.IdentifierValue, typeof(Vectorizer.Text2VecDatabricks) },
26-
{ Vectorizer.Text2VecGpt4All.IdentifierValue, typeof(Vectorizer.Text2VecGpt4All) },
26+
{ Vectorizer.Text2VecGpt4All.IdentifierValue, typeof(Vectorizer.Text2VecGpt4All) },
2727
{ Vectorizer.Text2VecHuggingFace.IdentifierValue, typeof(Vectorizer.Text2VecHuggingFace) },
2828
{ Vectorizer.Text2VecJinaAI.IdentifierValue, typeof(Vectorizer.Text2VecJinaAI) },
2929
{ Vectorizer.Text2VecNvidia.IdentifierValue, typeof(Vectorizer.Text2VecNvidia) },

0 commit comments

Comments
 (0)