mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-28 02:23:53 +02:00
7 lines
204 B
Python
7 lines
204 B
Python
|
|
from app.config import config
|
||
|
|
|
||
|
|
|
||
|
|
def embed_text(text: str) -> list[float]:
|
||
|
|
"""Embed a single text string using the configured embedding model."""
|
||
|
|
return config.embedding_model_instance.embed(text)
|