mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-19 11:08:55 +00:00
weaviate: Add-deprecation-warning (#29757)
- **Description:** add deprecation warning when using weaviate from langchain_community - **Issue:** NA - **Dependencies:** NA - **Twitter handle:** NA --------- Signed-off-by: hsm207 <hsm207@users.noreply.github.com> Co-authored-by: Chester Curme <chester.curme@gmail.com>
This commit is contained in:
parent
cd198ac9ed
commit
037b129b86
@ -3,12 +3,18 @@ from __future__ import annotations
|
|||||||
from typing import Any, Dict, List, Optional, cast
|
from typing import Any, Dict, List, Optional, cast
|
||||||
from uuid import uuid4
|
from uuid import uuid4
|
||||||
|
|
||||||
|
from langchain_core._api import deprecated
|
||||||
from langchain_core.callbacks import CallbackManagerForRetrieverRun
|
from langchain_core.callbacks import CallbackManagerForRetrieverRun
|
||||||
from langchain_core.documents import Document
|
from langchain_core.documents import Document
|
||||||
from langchain_core.retrievers import BaseRetriever
|
from langchain_core.retrievers import BaseRetriever
|
||||||
from pydantic import ConfigDict, model_validator
|
from pydantic import ConfigDict, model_validator
|
||||||
|
|
||||||
|
|
||||||
|
@deprecated(
|
||||||
|
since="0.3.18",
|
||||||
|
removal="1.0",
|
||||||
|
alternative_import="langchain_weaviate.WeaviateVectorStore",
|
||||||
|
)
|
||||||
class WeaviateHybridSearchRetriever(BaseRetriever):
|
class WeaviateHybridSearchRetriever(BaseRetriever):
|
||||||
"""`Weaviate hybrid search` retriever.
|
"""`Weaviate hybrid search` retriever.
|
||||||
|
|
||||||
|
@ -15,6 +15,7 @@ from typing import (
|
|||||||
from uuid import uuid4
|
from uuid import uuid4
|
||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
from langchain_core._api import deprecated
|
||||||
from langchain_core.documents import Document
|
from langchain_core.documents import Document
|
||||||
from langchain_core.embeddings import Embeddings
|
from langchain_core.embeddings import Embeddings
|
||||||
from langchain_core.vectorstores import VectorStore
|
from langchain_core.vectorstores import VectorStore
|
||||||
@ -65,6 +66,11 @@ def _json_serializable(value: Any) -> Any:
|
|||||||
return value
|
return value
|
||||||
|
|
||||||
|
|
||||||
|
@deprecated(
|
||||||
|
since="0.3.18",
|
||||||
|
removal="1.0",
|
||||||
|
alternative_import="langchain_weaviate.WeaviateVectorStore",
|
||||||
|
)
|
||||||
class Weaviate(VectorStore):
|
class Weaviate(VectorStore):
|
||||||
"""`Weaviate` vector store.
|
"""`Weaviate` vector store.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user