Share via


RedisJsonVectorStoreRecordCollectionOptions<TRecord>.JsonNodeCustomMapper Property

Definition

Gets or sets an optional custom mapper to use when converting between the data model and the Redis record.

public Microsoft.Extensions.VectorData.IVectorStoreRecordMapper<TRecord,(string Key, System.Text.Json.Nodes.JsonNode Node)>? JsonNodeCustomMapper { get; init; }
member this.JsonNodeCustomMapper : Microsoft.Extensions.VectorData.IVectorStoreRecordMapper<'Record, ValueTuple<string, System.Text.Json.Nodes.JsonNode>> with get, set
Public Property JsonNodeCustomMapper As IVectorStoreRecordMapper(Of TRecord, ValueTuple(Of String, JsonNode))

Property Value

Microsoft.Extensions.VectorData.IVectorStoreRecordMapper<TRecord,ValueTuple<String,JsonNode>>

Remarks

If not set, the default built in mapper will be used, which uses record attrigutes or the provided VectorStoreRecordDefinition to map the record.

Applies to