RetrievalResult

public final class RetrievalResult


Represents a retrieved document or multimedia chunk.

Summary

Public methods

List<Part>

Returns the list of multi-modal parts in the retrieved record.

String
id()

Returns the unique identifier of the retrieved record.

Map<String, String>

Returns the metadata associated with the retrieved record.

double

Returns the similarity/relevance score of this retrieved result.

Public methods

content

public List<Part> content()

Returns the list of multi-modal parts in the retrieved record.

id

public String id()

Returns the unique identifier of the retrieved record.

metadata

public Map<String, String> metadata()

Returns the metadata associated with the retrieved record.

score

public double score()

Returns the similarity/relevance score of this retrieved result.