RetrievalResult

public final class RetrievalResult

Represents a retrieved document or multimedia chunk.

Public Methods

List<Part>
content()
Returns the list of multi-modal parts in the retrieved record.
String
id()
Returns the unique identifier of the retrieved record.
Map<String, String>
metadata()
Returns the metadata associated with the retrieved record.
double
score()
Returns the similarity/relevance score of this retrieved result.

Inherited Methods

Public Methods

public List<Part> content ()

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

public String id ()

Returns the unique identifier of the retrieved record.

public Map<String, String> metadata ()

Returns the metadata associated with the retrieved record.

public double score ()

Returns the similarity/relevance score of this retrieved result.