Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Example/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ static async Task Main()
Name = "Cat",
Description = "Lots of Cats of multiple breeds",
Properties = Property.FromCollection<Cat>(),
VectorConfig = Vector.Name("default"),
VectorConfig = new VectorConfig("default", new Vectorizer.Text2VecWeaviate()),
};

collection = await weaviate.Collections.Create<Cat>(catCollection);
Expand Down
10 changes: 5 additions & 5 deletions src/Weaviate.Client.Tests/Integration/NearText.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ public async Task NearTextSearch()
null,
"Test collection description",
[Property.Text("value")],
vectorConfig: Vector
.Name("default")
.With(new VectorizerConfig.Text2VecContextionary())
.From<TestDataValue>(t => t.Value)
vectorConfig: new VectorConfig(
"default",
new Vectorizer.Text2VecContextionary() { Properties = ["value"] }
)
);

string[] values = ["Apple", "Mountain climbing", "apple cake", "cake"];
Expand Down Expand Up @@ -54,7 +54,7 @@ public async Task Test_Search_NearText_GroupBy()
"",
"Test collection description",
[Property.Text("value")],
vectorConfig: Vector.Name("default").With(new VectorizerConfig.Text2VecContextionary())
vectorConfig: new VectorConfig("default", new Vectorizer.Text2VecContextionary())
);

string[] values = ["Apple", "Mountain climbing", "apple cake", "cake"];
Expand Down
2 changes: 1 addition & 1 deletion src/Weaviate.Client.Tests/Integration/SingleTargetRef.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public async Task Test_SingleTargetReference_Complex()
Property.Int("movie_id"),
],
references: [Property.Reference("forMovie", targetCollection: movies.Name)],
vectorConfig: Vector.Name("default").With(new VectorizerConfig.Text2VecContextionary())
vectorConfig: new VectorConfig("default", new Vectorizer.Text2VecContextionary())
);

var moviesData = new[]
Expand Down
4 changes: 2 additions & 2 deletions src/Weaviate.Client.Tests/Integration/TestBatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public async Task Test_Batch_ReferenceAddMany()
// Setup referenced collection ("To")
var refCollection = await CollectionFactory(
name: "To",
vectorConfig: Vector.Name("default"),
vectorConfig: new VectorConfig("default"),
properties: [Property.Int("number")]
);
int numObjects = 10;
Expand All @@ -69,7 +69,7 @@ public async Task Test_Batch_ReferenceAddMany()
name: "From",
properties: [Property.Int("num")],
references: [Property.Reference("ref", refCollection.Name)],
vectorConfig: Vector.Name("default")
vectorConfig: new VectorConfig("default")
);

// Insert objects into the main collection and get their UUIDs
Expand Down
10 changes: 5 additions & 5 deletions src/Weaviate.Client.Tests/Integration/TestBatchDelete.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public async Task Test_Delete_Many_Return()
{
var collection = await CollectionFactory(
properties: [Property.Text("Name")],
vectorConfig: Vector.Name("default").With(new VectorizerConfig.None())
vectorConfig: new VectorConfig("default", new Vectorizer.None())
);

await collection.Data.InsertMany(batcher =>
Expand All @@ -34,7 +34,7 @@ public async Task Test_Delete_Many_Or()
{
var collection = await CollectionFactory(
properties: [Property.Text("Name"), Property.Int("Age")],
vectorConfig: Vector.Name("default").With(new VectorizerConfig.None())
vectorConfig: new VectorConfig("default", new Vectorizer.None())
);

await collection.Data.InsertMany(batcher =>
Expand Down Expand Up @@ -62,7 +62,7 @@ public async Task Test_Delete_Many_And()
{
var collection = await CollectionFactory(
properties: [Property.Text("Name"), Property.Int("Age")],
vectorConfig: Vector.Name("default").With(new VectorizerConfig.None())
vectorConfig: new VectorConfig("default", new Vectorizer.None())
);

await collection.Data.InsertMany(batcher =>
Expand Down Expand Up @@ -90,7 +90,7 @@ await collection.Data.DeleteMany(
public async Task Test_Dry_Run(bool dryRun)
{
var collection = await CollectionFactory(
vectorConfig: Vector.Name("default").With(new VectorizerConfig.None())
vectorConfig: new VectorConfig("default", new Vectorizer.None())
);

var uuid1 = await collection.Data.Insert(new { });
Expand Down Expand Up @@ -128,7 +128,7 @@ public async Task Test_Dry_Run(bool dryRun)
public async Task Test_Verbosity(bool verbose)
{
var collection = await CollectionFactory(
vectorConfig: Vector.Name("default").With(new VectorizerConfig.None())
vectorConfig: new VectorConfig("default", new Vectorizer.None())
);

var uuid1 = await collection.Data.Insert(new { });
Expand Down
Loading