We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d1cfa4 commit 8a95eb1Copy full SHA for 8a95eb1
libs/langchain_v1/langchain/embeddings/base.py
@@ -5,7 +5,6 @@
5
from typing import Any
6
7
from langchain_core.embeddings import Embeddings
8
-from langchain_core.runnables import Runnable
9
10
_SUPPORTED_PROVIDERS = {
11
"azure_openai": "langchain_openai",
@@ -126,7 +125,7 @@ def init_embeddings(
126
125
*,
127
provider: str | None = None,
128
**kwargs: Any,
129
-) -> Embeddings | Runnable[Any, list[float]]:
+) -> Embeddings:
130
"""Initialize an embeddings model from a model name and optional provider.
131
132
**Note:** Must have the integration package corresponding to the model provider
0 commit comments