Class DataPipelineContentItemContentPart
- Namespace
- FoundationaLLM.Common.Models.DataPipelines
- Assembly
- FoundationaLLM.Common.dll
Represents a content part of a content item.
public class DataPipelineContentItemContentPart : DataPipelineContentItemPartBase
- Inheritance
-
DataPipelineContentItemContentPart
- Inherited Members
- Extension Methods
Properties
Content
Gets or sets the text content of the content item part.
[JsonPropertyName("content")]
public string? Content { get; set; }
Property Value
ContentSizeTokens
Gets or sets the size of the content item part in tokens.
[JsonPropertyName("content_size_tokens")]
public int ContentSizeTokens { get; set; }
Property Value
Embedding
Gets or sets the embedding of the content item part.
[JsonPropertyName("embedding")]
public float[]? Embedding { get; set; }
Property Value
- float[]
Methods
Create(string, int, string, int)
Creates a new instance of DataPipelineContentItemContentPart with the specified parameters.
public static DataPipelineContentItemContentPart Create(string contentItemCanonicalId, int position, string content, int contentSizeTokens)
Parameters
contentItemCanonicalId
stringThe canonical identifier of the content item.
position
intThe position of the part within the content item.
content
stringThe content of the content item part.
contentSizeTokens
intThe size of the content item part in tokens.