11 lines
245 B
Python
11 lines
245 B
Python
from __future__ import annotations
|
|
|
|
from app.llm.client import LLMClient
|
|
|
|
|
|
async def embed_texts(texts: list[str]) -> list[list[float]]:
|
|
if not texts:
|
|
return []
|
|
client = LLMClient()
|
|
return await client.embed(texts)
|