Method WithIncludedStoredFields
WithIncludedStoredFields(params FieldDefinition<TDocument>[])
Creates a new CreateAutoEmbeddingVectorSearchIndexModel<TDocument> with the given fields configured to be stored in the index. Note that storing full documents might significantly impact performance during indexing and querying. Explicitly storing vector fields is not recommended.
public CreateAutoEmbeddingVectorSearchIndexModel<TDocument> WithIncludedStoredFields(params FieldDefinition<TDocument>[] includedStoredFields)
Parameters
includedStoredFieldsFieldDefinition<TDocument>[]The fields to store.
Returns
- CreateAutoEmbeddingVectorSearchIndexModel<TDocument>
A new model with the fields configured.
WithIncludedStoredFields(params Expression<Func<TDocument, object>>[])
Creates a new CreateAutoEmbeddingVectorSearchIndexModel<TDocument> with the given fields configured to be stored in the index. Note that storing full documents might significantly impact performance during indexing and querying. Explicitly storing vector fields is not recommended.
public CreateAutoEmbeddingVectorSearchIndexModel<TDocument> WithIncludedStoredFields(params Expression<Func<TDocument, object>>[] includedStoredFields)
Parameters
includedStoredFieldsExpression<Func<TDocument, object>>[]The fields to store.
Returns
- CreateAutoEmbeddingVectorSearchIndexModel<TDocument>
A new model with the fields configured.