GoodMem
ReferenceClient SDKsGo SDKModels

ChunkReference Model

ChunkReference Model documentation for Go SDK

Properties

NameTypeDescriptionNotes
ResultSetIdstringResult set ID that produced this chunk
ChunkMemoryChunkResponse
MemoryIndexint32Index of the chunk's memory in the client's memories array
RelevanceScorefloat64Relevance score for this chunk (0.0 to 1.0)

Methods

NewChunkReference

func NewChunkReference(resultSetId string, chunk MemoryChunkResponse, memoryIndex int32, relevanceScore float64, ) *ChunkReference

NewChunkReference instantiates a new ChunkReference object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

NewChunkReferenceWithDefaults

func NewChunkReferenceWithDefaults() *ChunkReference

NewChunkReferenceWithDefaults instantiates a new ChunkReference object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

GetResultSetId

func (o *ChunkReference) GetResultSetId() string

GetResultSetId returns the ResultSetId field if non-nil, zero value otherwise.

GetResultSetIdOk

func (o *ChunkReference) GetResultSetIdOk() (*string, bool)

GetResultSetIdOk returns a tuple with the ResultSetId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetResultSetId

func (o *ChunkReference) SetResultSetId(v string)

SetResultSetId sets ResultSetId field to given value.

GetChunk

func (o *ChunkReference) GetChunk() MemoryChunkResponse

GetChunk returns the Chunk field if non-nil, zero value otherwise.

GetChunkOk

func (o *ChunkReference) GetChunkOk() (*MemoryChunkResponse, bool)

GetChunkOk returns a tuple with the Chunk field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetChunk

func (o *ChunkReference) SetChunk(v MemoryChunkResponse)

SetChunk sets Chunk field to given value.

GetMemoryIndex

func (o *ChunkReference) GetMemoryIndex() int32

GetMemoryIndex returns the MemoryIndex field if non-nil, zero value otherwise.

GetMemoryIndexOk

func (o *ChunkReference) GetMemoryIndexOk() (*int32, bool)

GetMemoryIndexOk returns a tuple with the MemoryIndex field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetMemoryIndex

func (o *ChunkReference) SetMemoryIndex(v int32)

SetMemoryIndex sets MemoryIndex field to given value.

GetRelevanceScore

func (o *ChunkReference) GetRelevanceScore() float64

GetRelevanceScore returns the RelevanceScore field if non-nil, zero value otherwise.

GetRelevanceScoreOk

func (o *ChunkReference) GetRelevanceScoreOk() (*float64, bool)

GetRelevanceScoreOk returns a tuple with the RelevanceScore field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetRelevanceScore

func (o *ChunkReference) SetRelevanceScore(v float64)

SetRelevanceScore sets RelevanceScore field to given value.

↑ Back to Go SDK ↑ Back to Go SDK ↑ Back to Go SDK