MCPcopy Index your code
hub / github.com/TaskingAI/TaskingAI / text_embedding

Function text_embedding

inference/test/inference_service/inference.py:14–18  ·  view source on GitHub ↗
(data: Dict)

Source from the content-addressed store, hash-verified

12
13
14async 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
21async def rerank(data: Dict):

Calls 2

ResponseWrapperClass · 0.90
jsonMethod · 0.45