Full-decode an Astra DB find-and-rerank hit (Document+embedding/similarity).
This operation returns a representation that is independent of the codec being used in the collection (whereas the 'document' part of the input, a 'raw' Astra DB response from a find-and-rerank hybrid search, is codec-dependent).
The input raw document is what the find_and_rerank Astrapy method returns, i.e. an iterable over RerankedResult objects. Missing entries (such as the embedding) are set to None in the resulf if not found.
The whole method can return a None, to signal that the codec has refused the conversion (e.g. because the input document is deemed faulty).
full_decode_astra_db_reranked_result(
self,
astra_db_reranked_result: RerankedResult[DocDict]
) -> AstraDBQueryResult | None| Name | Type | Description |
|---|---|---|
astra_db_reranked_result* | RerankedResult[DocDict] | a RerankedResult obtained by a |