Table of Contents

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

string

ContentSizeTokens

Gets or sets the size of the content item part in tokens.

[JsonPropertyName("content_size_tokens")]
public int ContentSizeTokens { get; set; }

Property Value

int

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 string

The canonical identifier of the content item.

position int

The position of the part within the content item.

content string

The content of the content item part.

contentSizeTokens int

The size of the content item part in tokens.

Returns

DataPipelineContentItemContentPart