(data: Dict)
| 12 | |
| 13 | |
| 14 | async def text_embedding(data: Dict): |
| 15 | async with aiohttp.ClientSession() as session: |
| 16 | request_url = f"{Config.BASE_URL}/text_embedding" |
| 17 | response = await session.post(request_url, json=data) |
| 18 | return ResponseWrapper(response.status, await response.json()) |
| 19 | |
| 20 | |
| 21 | async def rerank(data: Dict): |