Skip to content

Commit 2994123

Browse files
committed
fix the build
1 parent 3e0aecc commit 2994123

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

dotnet/samples/Concepts/Memory/VectorStoreLangchainInterop/PineconeFactory.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public override VectorStoreCollection<TKey, TRecord> GetCollection<TKey, TRecord
5858
name,
5959
new()
6060
{
61-
VectorStoreRecordDefinition = s_recordDefinition
61+
Definition = s_recordDefinition
6262
}) as VectorStoreCollection<TKey, TRecord>)!;
6363
}
6464

@@ -72,7 +72,7 @@ public override VectorStoreCollection<TKey, TRecord> GetCollection<TKey, TRecord
7272
name,
7373
new()
7474
{
75-
VectorStoreRecordDefinition = s_recordDefinition
75+
Definition = s_recordDefinition
7676
});
7777
}
7878

dotnet/src/Connectors/Connectors.Pinecone.UnitTests/PineconeCollectionTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public void CanCreateCollectionWithMismatchedDefinitionAndType()
4040
using var sut = new PineconeCollection<string, SinglePropsModel>(
4141
pineconeClient,
4242
TestCollectionName,
43-
new() { VectorStoreRecordDefinition = definition });
43+
new() { Definition = definition });
4444
}
4545

4646
public sealed class SinglePropsModel

dotnet/src/Connectors/VectorData.Abstractions/ProviderServices/CollectionModel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public VectorPropertyModel GetVectorPropertyOrSingle<TRecord>(RecordSearchOption
111111
// If vector property name is not provided, check if there is a single vector property, or throw if there are no vectors or more than one.
112112
return this._singleVectorProperty ??= this.VectorProperties switch
113113
{
114-
[var singleProperty] => singleProperty,
114+
[var singleProperty] => singleProperty,
115115
{ Count: 0 } => throw new InvalidOperationException($"The '{this._recordType.Name}' type does not have any vector properties."),
116116
_ => throw new InvalidOperationException($"The '{this._recordType.Name}' type has multiple vector properties, please specify your chosen property via options.")
117117
};
@@ -145,7 +145,7 @@ public DataPropertyModel GetFullTextDataPropertyOrSingle<TRecord>(Expression<Fun
145145
// If text data property name is not provided, check if a single full text indexed text property exists or throw otherwise.
146146
this._singleFullTextSearchProperty = fullTextStringProperties switch
147147
{
148-
[var singleProperty] => singleProperty,
148+
[var singleProperty] => singleProperty,
149149
{ Count: 0 } => throw new InvalidOperationException($"The '{this._recordType.Name}' type does not have any text data properties that have full text indexing enabled."),
150150
_ => throw new InvalidOperationException($"The '{this._recordType.Name}' type has multiple text data properties that have full text indexing enabled, please specify your chosen property via options.")
151151
};

dotnet/src/VectorDataIntegrationTests/CosmosMongoDBIntegrationTests/CosmosMongoEmbeddingGenerationTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public override VectorStore CreateVectorStore(IEmbeddingGenerator? embeddingGene
3131
[
3232
services => services
3333
.AddSingleton(CosmosMongoTestStore.Instance.Database)
34-
.AddCosmosMongoVectorStoreRecordCollection<RecordWithAttributes>(this.CollectionName)
34+
.AddCosmosMongoCollection<RecordWithAttributes>(this.CollectionName)
3535
];
3636
}
3737

dotnet/src/VectorDataIntegrationTests/CosmosNoSqlIntegrationTests/CosmosNoSqlEmbeddingGenerationTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public override VectorStore CreateVectorStore(IEmbeddingGenerator? embeddingGene
3131
[
3232
services => services
3333
.AddSingleton(CosmosNoSqlTestStore.Instance.Database)
34-
.AddCosmosNoSqlVectorStoreRecordCollection<RecordWithAttributes>(this.CollectionName)
34+
.AddCosmosNoSqlCollection<RecordWithAttributes>(this.CollectionName)
3535
];
3636
}
3737

dotnet/src/VectorDataIntegrationTests/MongoDBIntegrationTests/MongoDBEmbeddingGenerationTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ public override VectorStore CreateVectorStore(IEmbeddingGenerator? embeddingGene
2424
[
2525
services => services
2626
.AddSingleton(MongoDBTestStore.Instance.Database)
27-
.AddMongoDBVectorStore()
27+
.AddMongoVectorStore()
2828
];
2929

3030
public override Func<IServiceCollection, IServiceCollection>[] DependencyInjectionCollectionRegistrationDelegates =>
3131
[
3232
services => services
3333
.AddSingleton(MongoDBTestStore.Instance.Database)
34-
.AddMongoDBVectorStoreRecordCollection<RecordWithAttributes>(this.CollectionName)
34+
.AddMongoCollection<RecordWithAttributes>(this.CollectionName)
3535
];
3636
}
3737

0 commit comments

Comments
 (0)