Turns TileDB results into a list of documents and scores.
process_index_results(
self,
ids: List[int],
scores: List[float],
*,
k: int = 4,
filter: Optional[Dict[str, Any]] = None,
score_threshold: float = MAX_FLOAT
) -> List[Tuple[Document, float]]Returns: List of Documents and scores.
| Name | Type | Description |
|---|---|---|
ids* | List[int] | List of indices of the documents in the index. |
scores* | List[float] | List of distances of the documents in the index. |
k | int | Default: 4Number of Documents to return. Defaults to 4. |
filter | Optional[Dict[str, Any]] | Default: NoneFilter by metadata. Defaults to None. |
score_threshold | float | Default: MAX_FLOATOptional, a floating point value to filter the resulting set of retrieved docs |