semantic-kernel icon indicating copy to clipboard operation
semantic-kernel copied to clipboard

.Net: Investigate extended property attributes for specific vector store connectors

Open dmytrostruk opened this issue 1 year ago • 1 comments

Current Azure CosmosDB NoSQL implementation has PartitionKeyPropertyName property in CollectionOptions class to specify property name. It will be easier if it will be possible to mark specific record property as Partition Key with attribute, something like this:

[AzureCosmosDBNoSQLPartitionKey] // From the AzureCosmosDB lib.
[VectorStoreRecordData]
public string Description { get; set; }
 
var dataProp  = new VectorStoreRecordDataProperty("Description", typeof(string));
dataProp.SetAzureCosmosDBNoSQLPartitionKey(true);

Same approach can be applied for other connectors whenever custom property configuration is required.

dmytrostruk avatar Aug 14 '24 01:08 dmytrostruk

This issue is stale because it has been open for 90 days with no activity.

github-actions[bot] avatar Apr 27 '25 02:04 github-actions[bot]