Table of Contents

Class Corpus

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

A Corpus is a collection of Document. A project can create up to 5 corpora.

public class Corpus
Inheritance
Corpus
Inherited Members
Extension Methods

Properties

CreateTime

Output only. The Timestamp of when the Corpus was created. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".

[JsonPropertyName("createTime")]
public Timestamp? CreateTime { get; set; }

Property Value

Timestamp

DisplayName

Optional. The human-readable display name for the Corpus. The display name must be no more than 512 characters in length, including spaces. Example: "Docs on Semantic Retriever"

[JsonPropertyName("displayName")]
public string? DisplayName { get; set; }

Property Value

string

Name

Immutable. Identifier. The Corpus resource name. The ID (name excluding the "corpora/" prefix) can contain up to 40 characters that are lowercase alphanumeric or dashes (-). The ID cannot start or end with a dash. If the name is empty on create, a unique name will be derived from DisplayName along with a 12 character random suffix. Example: corpora/my-awesome-corpora-123a456b789c

[JsonPropertyName("name")]
public string? Name { get; set; }

Property Value

string

UpdateTime

Output only. The Timestamp of when the Corpus was last updated. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".

[JsonPropertyName("updateTime")]
public Timestamp? UpdateTime { get; set; }

Property Value

Timestamp

See Also