mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-20 09:57:32 +00:00
parent
3a750e130c
commit
d6470aab60
@ -112,13 +112,13 @@ def __getattr__(name: str) -> Any:
|
|||||||
|
|
||||||
return VectorDBQAWithSourcesChain
|
return VectorDBQAWithSourcesChain
|
||||||
elif name == "InMemoryDocstore":
|
elif name == "InMemoryDocstore":
|
||||||
from langchain.docstore import InMemoryDocstore
|
from langchain_community.docstore import InMemoryDocstore
|
||||||
|
|
||||||
_warn_on_import(name, replacement="langchain.docstore.InMemoryDocstore")
|
_warn_on_import(name, replacement="langchain.docstore.InMemoryDocstore")
|
||||||
|
|
||||||
return InMemoryDocstore
|
return InMemoryDocstore
|
||||||
elif name == "Wikipedia":
|
elif name == "Wikipedia":
|
||||||
from langchain.docstore import Wikipedia
|
from langchain_community.docstore import Wikipedia
|
||||||
|
|
||||||
_warn_on_import(name, replacement="langchain.docstore.Wikipedia")
|
_warn_on_import(name, replacement="langchain.docstore.Wikipedia")
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
"""Chain that implements the ReAct paper from https://arxiv.org/pdf/2210.03629.pdf."""
|
"""Chain that implements the ReAct paper from https://arxiv.org/pdf/2210.03629.pdf."""
|
||||||
from typing import Any, List, Optional, Sequence
|
from typing import Any, List, Optional, Sequence
|
||||||
|
|
||||||
|
from langchain_community.docstore.base import Docstore
|
||||||
from langchain_core._api import deprecated
|
from langchain_core._api import deprecated
|
||||||
from langchain_core.documents import Document
|
from langchain_core.documents import Document
|
||||||
from langchain_core.language_models import BaseLanguageModel
|
from langchain_core.language_models import BaseLanguageModel
|
||||||
@ -14,7 +15,6 @@ from langchain.agents.react.output_parser import ReActOutputParser
|
|||||||
from langchain.agents.react.textworld_prompt import TEXTWORLD_PROMPT
|
from langchain.agents.react.textworld_prompt import TEXTWORLD_PROMPT
|
||||||
from langchain.agents.react.wiki_prompt import WIKI_PROMPT
|
from langchain.agents.react.wiki_prompt import WIKI_PROMPT
|
||||||
from langchain.agents.utils import validate_tools_single_input
|
from langchain.agents.utils import validate_tools_single_input
|
||||||
from langchain.docstore.base import Docstore
|
|
||||||
|
|
||||||
|
|
||||||
@deprecated("0.1.0", removal="0.2.0")
|
@deprecated("0.1.0", removal="0.2.0")
|
||||||
|
Loading…
Reference in New Issue
Block a user