semantic-kernel
semantic-kernel copied to clipboard
.Net: Investigate extended property attributes for specific vector store connectors
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.
This issue is stale because it has been open for 90 days with no activity.