Files
Home_assistant/backend/app/rag/embeddings.py
T
2026-06-13 20:20:56 +00:00

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)