Sanitize the input dictionary or list.
Sanitizes the input by removing embedding-like values, lists with more than 128 elements, that are mostly irrelevant for generating answers in a LLM context. These properties, if left in results, can occupy significant context space and detract from the LLM's performance by introducing unnecessary noise and cost.
| Name | Type | Description |
|---|---|---|
d* | Any | The input dictionary or list to sanitize. |