mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-21 18:39:57 +00:00
multiple: update docs urls to latest 2 (#26837)
This commit is contained in:
@@ -101,7 +101,7 @@ def create_importer(
|
||||
f">> from {new_module} import {name}\n"
|
||||
"You can use the langchain cli to **automatically** "
|
||||
"upgrade many imports. Please see documentation here "
|
||||
"<https://python.langchain.com/v0.2/docs/versions/v0_2/>"
|
||||
"<https://python.langchain.com/docs/versions/v0_2/>"
|
||||
),
|
||||
)
|
||||
return result
|
||||
@@ -133,7 +133,7 @@ def create_importer(
|
||||
f">> from {fallback_module} import {name}\n"
|
||||
"You can use the langchain cli to **automatically** "
|
||||
"upgrade many imports. Please see documentation here "
|
||||
"<https://python.langchain.com/v0.2/docs/versions/v0_2/>"
|
||||
"<https://python.langchain.com/docs/versions/v0_2/>"
|
||||
),
|
||||
)
|
||||
return result
|
||||
|
@@ -23,7 +23,7 @@ from langchain.chains.llm import LLMChain
|
||||
"See API reference for this function for a replacement implementation: "
|
||||
"https://api.python.langchain.com/en/latest/agents/langchain.agents.agent_toolkits.vectorstore.base.create_vectorstore_agent.html " # noqa: E501
|
||||
"Read more here on how to create agents that query vector stores: "
|
||||
"https://python.langchain.com/v0.2/docs/how_to/qa_chat_history_how_to/#agents"
|
||||
"https://python.langchain.com/docs/how_to/qa_chat_history_how_to/#agents"
|
||||
),
|
||||
)
|
||||
def create_vectorstore_agent(
|
||||
@@ -112,7 +112,7 @@ def create_vectorstore_agent(
|
||||
"See API reference for this function for a replacement implementation: "
|
||||
"https://api.python.langchain.com/en/latest/agents/langchain.agents.agent_toolkits.vectorstore.base.create_vectorstore_router_agent.html " # noqa: E501
|
||||
"Read more here on how to create agents that query vector stores: "
|
||||
"https://python.langchain.com/v0.2/docs/how_to/qa_chat_history_how_to/#agents"
|
||||
"https://python.langchain.com/docs/how_to/qa_chat_history_how_to/#agents"
|
||||
),
|
||||
)
|
||||
def create_vectorstore_router_agent(
|
||||
|
@@ -102,7 +102,7 @@ def create_stuff_documents_chain(
|
||||
message=(
|
||||
"This class is deprecated. Use the `create_stuff_documents_chain` constructor "
|
||||
"instead. See migration guide here: "
|
||||
"https://python.langchain.com/v0.2/docs/versions/migrating_chains/stuff_docs_chain/" # noqa: E501
|
||||
"https://python.langchain.com/docs/versions/migrating_chains/stuff_docs_chain/" # noqa: E501
|
||||
),
|
||||
)
|
||||
class StuffDocumentsChain(BaseCombineDocumentsChain):
|
||||
|
@@ -25,7 +25,7 @@ class ConversationChain(LLMChain):
|
||||
"""Chain to have a conversation and load context from memory.
|
||||
|
||||
This class is deprecated in favor of ``RunnableWithMessageHistory``. Please refer
|
||||
to this tutorial for more detail: https://python.langchain.com/v0.2/docs/tutorials/chatbot/
|
||||
to this tutorial for more detail: https://python.langchain.com/docs/tutorials/chatbot/
|
||||
|
||||
``RunnableWithMessageHistory`` offers several benefits, including:
|
||||
|
||||
|
@@ -31,7 +31,7 @@ from langchain.chains.llm import LLMChain
|
||||
"Refer here for a recommended map-reduce implementation using langgraph: "
|
||||
"https://langchain-ai.github.io/langgraph/how-tos/map-reduce/. See also "
|
||||
"migration guide: "
|
||||
"https://python.langchain.com/v0.2/docs/versions/migrating_chains/map_reduce_chain/" # noqa: E501
|
||||
"https://python.langchain.com/docs/versions/migrating_chains/map_reduce_chain/" # noqa: E501
|
||||
),
|
||||
)
|
||||
class MapReduceChain(Chain):
|
||||
|
@@ -32,7 +32,7 @@ class AnswerWithSources(BaseModel):
|
||||
message=(
|
||||
"This function is deprecated. Refer to this guide on retrieval and question "
|
||||
"answering with structured responses: "
|
||||
"https://python.langchain.com/v0.2/docs/how_to/qa_sources/#structure-sources-in-model-response" # noqa: E501
|
||||
"https://python.langchain.com/docs/how_to/qa_sources/#structure-sources-in-model-response" # noqa: E501
|
||||
),
|
||||
)
|
||||
def create_qa_with_structure_chain(
|
||||
@@ -114,7 +114,7 @@ def create_qa_with_structure_chain(
|
||||
message=(
|
||||
"This function is deprecated. Refer to this guide on retrieval and question "
|
||||
"answering with sources: "
|
||||
"https://python.langchain.com/v0.2/docs/how_to/qa_sources/#structure-sources-in-model-response" # noqa: E501
|
||||
"https://python.langchain.com/docs/how_to/qa_sources/#structure-sources-in-model-response" # noqa: E501
|
||||
),
|
||||
)
|
||||
def create_qa_with_sources_chain(
|
||||
|
@@ -38,7 +38,7 @@ Passage:
|
||||
"See API reference for this function for replacement: "
|
||||
"<https://api.python.langchain.com/en/latest/chains/langchain.chains.openai_functions.tagging.create_tagging_chain.html> " # noqa: E501
|
||||
"You can read more about `with_structured_output` here: "
|
||||
"<https://python.langchain.com/v0.2/docs/how_to/structured_output/>. "
|
||||
"<https://python.langchain.com/docs/how_to/structured_output/>. "
|
||||
"If you notice other issues, please provide "
|
||||
"feedback here: "
|
||||
"<https://github.com/langchain-ai/langchain/discussions/18154>"
|
||||
@@ -78,7 +78,7 @@ def create_tagging_chain(
|
||||
"Why did the cat cross the road? To get to the other "
|
||||
"side... and then lay down in the middle of it!"
|
||||
)
|
||||
Read more here: https://python.langchain.com/v0.2/docs/how_to/structured_output/
|
||||
Read more here: https://python.langchain.com/docs/how_to/structured_output/
|
||||
|
||||
Args:
|
||||
schema: The schema of the entities to extract.
|
||||
@@ -109,7 +109,7 @@ def create_tagging_chain(
|
||||
"See API reference for this function for replacement: "
|
||||
"<https://api.python.langchain.com/en/latest/chains/langchain.chains.openai_functions.tagging.create_tagging_chain_pydantic.html> " # noqa: E501
|
||||
"You can read more about `with_structured_output` here: "
|
||||
"<https://python.langchain.com/v0.2/docs/how_to/structured_output/>. "
|
||||
"<https://python.langchain.com/docs/how_to/structured_output/>. "
|
||||
"If you notice other issues, please provide "
|
||||
"feedback here: "
|
||||
"<https://github.com/langchain-ai/langchain/discussions/18154>"
|
||||
@@ -147,7 +147,7 @@ def create_tagging_chain_pydantic(
|
||||
"Why did the cat cross the road? To get to the other "
|
||||
"side... and then lay down in the middle of it!"
|
||||
)
|
||||
Read more here: https://python.langchain.com/v0.2/docs/how_to/structured_output/
|
||||
Read more here: https://python.langchain.com/docs/how_to/structured_output/
|
||||
|
||||
Args:
|
||||
pydantic_schema: The pydantic schema of the entities to extract.
|
||||
|
@@ -37,7 +37,7 @@ from langchain.chains.qa_with_sources.map_reduce_prompt import (
|
||||
message=(
|
||||
"This class is deprecated. Refer to this guide on retrieval and question "
|
||||
"answering with sources: "
|
||||
"https://python.langchain.com/v0.2/docs/how_to/qa_sources/"
|
||||
"https://python.langchain.com/docs/how_to/qa_sources/"
|
||||
),
|
||||
)
|
||||
class BaseQAWithSourcesChain(Chain, ABC):
|
||||
@@ -216,7 +216,7 @@ class BaseQAWithSourcesChain(Chain, ABC):
|
||||
message=(
|
||||
"This class is deprecated. Refer to this guide on retrieval and question "
|
||||
"answering with sources: "
|
||||
"https://python.langchain.com/v0.2/docs/how_to/qa_sources/"
|
||||
"https://python.langchain.com/docs/how_to/qa_sources/"
|
||||
),
|
||||
)
|
||||
class QAWithSourcesChain(BaseQAWithSourcesChain):
|
||||
|
@@ -158,13 +158,13 @@ def _load_refine_chain(
|
||||
message=(
|
||||
"This function is deprecated. Refer to this guide on retrieval and question "
|
||||
"answering with sources: "
|
||||
"https://python.langchain.com/v0.2/docs/how_to/qa_sources/"
|
||||
"https://python.langchain.com/docs/how_to/qa_sources/"
|
||||
"\nSee also the following migration guides for replacements "
|
||||
"based on `chain_type`:\n"
|
||||
"stuff: https://python.langchain.com/v0.2/docs/versions/migrating_chains/stuff_docs_chain\n" # noqa: E501
|
||||
"map_reduce: https://python.langchain.com/v0.2/docs/versions/migrating_chains/map_reduce_chain\n" # noqa: E501
|
||||
"refine: https://python.langchain.com/v0.2/docs/versions/migrating_chains/refine_chain\n" # noqa: E501
|
||||
"map_rerank: https://python.langchain.com/v0.2/docs/versions/migrating_chains/map_rerank_docs_chain\n" # noqa: E501
|
||||
"stuff: https://python.langchain.com/docs/versions/migrating_chains/stuff_docs_chain\n" # noqa: E501
|
||||
"map_reduce: https://python.langchain.com/docs/versions/migrating_chains/map_reduce_chain\n" # noqa: E501
|
||||
"refine: https://python.langchain.com/docs/versions/migrating_chains/refine_chain\n" # noqa: E501
|
||||
"map_rerank: https://python.langchain.com/docs/versions/migrating_chains/map_rerank_docs_chain\n" # noqa: E501
|
||||
),
|
||||
)
|
||||
def load_qa_with_sources_chain(
|
||||
|
@@ -223,12 +223,12 @@ def _load_refine_chain(
|
||||
message=(
|
||||
"This class is deprecated. See the following migration guides for replacements "
|
||||
"based on `chain_type`:\n"
|
||||
"stuff: https://python.langchain.com/v0.2/docs/versions/migrating_chains/stuff_docs_chain\n" # noqa: E501
|
||||
"map_reduce: https://python.langchain.com/v0.2/docs/versions/migrating_chains/map_reduce_chain\n" # noqa: E501
|
||||
"refine: https://python.langchain.com/v0.2/docs/versions/migrating_chains/refine_chain\n" # noqa: E501
|
||||
"map_rerank: https://python.langchain.com/v0.2/docs/versions/migrating_chains/map_rerank_docs_chain\n" # noqa: E501
|
||||
"stuff: https://python.langchain.com/docs/versions/migrating_chains/stuff_docs_chain\n" # noqa: E501
|
||||
"map_reduce: https://python.langchain.com/docs/versions/migrating_chains/map_reduce_chain\n" # noqa: E501
|
||||
"refine: https://python.langchain.com/docs/versions/migrating_chains/refine_chain\n" # noqa: E501
|
||||
"map_rerank: https://python.langchain.com/docs/versions/migrating_chains/map_rerank_docs_chain\n" # noqa: E501
|
||||
"\nSee also guides on retrieval and question-answering here: "
|
||||
"https://python.langchain.com/v0.2/docs/how_to/#qa-with-rag"
|
||||
"https://python.langchain.com/docs/how_to/#qa-with-rag"
|
||||
),
|
||||
)
|
||||
def load_qa_chain(
|
||||
|
@@ -34,7 +34,7 @@ from langchain.chains.question_answering.stuff_prompt import PROMPT_SELECTOR
|
||||
message=(
|
||||
"This class is deprecated. Use the `create_retrieval_chain` constructor "
|
||||
"instead. See migration guide here: "
|
||||
"https://python.langchain.com/v0.2/docs/versions/migrating_chains/retrieval_qa/"
|
||||
"https://python.langchain.com/docs/versions/migrating_chains/retrieval_qa/"
|
||||
),
|
||||
)
|
||||
class BaseRetrievalQA(Chain):
|
||||
@@ -210,7 +210,7 @@ class BaseRetrievalQA(Chain):
|
||||
message=(
|
||||
"This class is deprecated. Use the `create_retrieval_chain` constructor "
|
||||
"instead. See migration guide here: "
|
||||
"https://python.langchain.com/v0.2/docs/versions/migrating_chains/retrieval_qa/"
|
||||
"https://python.langchain.com/docs/versions/migrating_chains/retrieval_qa/"
|
||||
),
|
||||
)
|
||||
class RetrievalQA(BaseRetrievalQA):
|
||||
@@ -295,7 +295,7 @@ class RetrievalQA(BaseRetrievalQA):
|
||||
message=(
|
||||
"This class is deprecated. Use the `create_retrieval_chain` constructor "
|
||||
"instead. See migration guide here: "
|
||||
"https://python.langchain.com/v0.2/docs/versions/migrating_chains/retrieval_qa/"
|
||||
"https://python.langchain.com/docs/versions/migrating_chains/retrieval_qa/"
|
||||
),
|
||||
)
|
||||
class VectorDBQA(BaseRetrievalQA):
|
||||
|
Reference in New Issue
Block a user