ragrank.utils.common
Include the common util functions
- ragrank.utils.common.eval_cell(cell_value: str | List[str]) str | List[str]
Evaluate a cell value and return it as a string or a list of strings.
- Parameters:
cell_value (str) – The value of the cell.
- Returns:
The evaluated cell value.
- Return type:
Union[str, List[str]]
- ragrank.utils.common.send_request(*, json: dict, url: str = 'https://ragrank-trace.vercel.app/', timeout: float = 10.0, url_sufix: str = '') bool
Send a POST request to the specified URL with JSON payload.
- Parameters:
url (str) – The URL to send the request to.
json (dict) – The JSON payload to send.
timeout (float, optional) – Timeout for the request in seconds. Defaults to REQUEST_TIME_OUT.
- Returns:
True if the request was successful, False otherwise.
- Return type:
bool