mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-08 14:31:55 +00:00
community: deprecate community ollama integrations (#26733)
This commit is contained in:
@@ -2,12 +2,18 @@ import logging
|
||||
from typing import Any, Dict, List, Mapping, Optional
|
||||
|
||||
import requests
|
||||
from langchain_core._api.deprecation import deprecated
|
||||
from langchain_core.embeddings import Embeddings
|
||||
from pydantic import BaseModel, ConfigDict
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@deprecated(
|
||||
since="0.3.1",
|
||||
removal="1.0.0",
|
||||
alternative_import="langchain_ollama.OllamaEmbeddings",
|
||||
)
|
||||
class OllamaEmbeddings(BaseModel, Embeddings):
|
||||
"""Ollama locally runs large language models.
|
||||
|
||||
|
Reference in New Issue
Block a user