You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Embeds documents using privatemode ai proxy via OpenAI classes.
224
225
Note that the model and api key are currently hardcoded since they aren't configurable.
225
226
226
227
Args:
227
228
batch_size (int, optional): Defines the number of conversions after which the embedder yields. Defaults to 128.
228
-
model_name (str, optional): Name of the embedding model from Privatemode AI (e.g. intfloat/multilingual-e5-large-instruct). Defaults to "intfloat/multilingual-e5-large-instruct".
229
+
model_name (str, optional): Name of the embedding model from Privatemode AI (e.g. intfloat/multilingual-e5-large-instruct). Defaults to "qwen3-embedding-4b".
229
230
230
231
Raises:
231
232
Exception: If you use Azure, you need to provide api_type, api_version and api_base.
@@ -238,8 +239,8 @@ def __init__(
238
239
api_key="dummy", # Set in proxy
239
240
base_url=PRIVATEMODE_AI_URL,
240
241
)
241
-
# for trimming the length of the text if > 512 tokens
0 commit comments