From e34dde3d1507e341ed5299bf89c87aed98daa040 Mon Sep 17 00:00:00 2001 From: Geonwoo Kim <42592581+toddkim95@users.noreply.github.com> Date: Mon, 4 Sep 2023 08:15:46 +0900 Subject: [PATCH] docs: Fix `CustomLLM` and `Question_answering` docs (#9782) ### Description - Update `CustomLLM._call`: Corrected the _call method in CustomLLM to include **kwargs, ensuring consistency with parent class. - Update `Question_answering`: To fix `Page not found` error - https://python.langchain.com/docs/use_cases/code -> https://python.langchain.com/docs/use_cases/code_understanding ### Issue N/A ### Dependencies N/A ### Tag maintainer N/A ### Twitter handle N/A --- docs/extras/modules/model_io/models/llms/custom_llm.ipynb | 1 + .../use_cases/question_answering/question_answering.ipynb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/extras/modules/model_io/models/llms/custom_llm.ipynb b/docs/extras/modules/model_io/models/llms/custom_llm.ipynb index 2e7e9075239..3ff99dc80dd 100644 --- a/docs/extras/modules/model_io/models/llms/custom_llm.ipynb +++ b/docs/extras/modules/model_io/models/llms/custom_llm.ipynb @@ -52,6 +52,7 @@ " prompt: str,\n", " stop: Optional[List[str]] = None,\n", " run_manager: Optional[CallbackManagerForLLMRun] = None,\n", + " **kwargs: Any,\n", " ) -> str:\n", " if stop is not None:\n", " raise ValueError(\"stop kwargs are not permitted.\")\n", diff --git a/docs/extras/use_cases/question_answering/question_answering.ipynb b/docs/extras/use_cases/question_answering/question_answering.ipynb index fe61c0ad25c..ccadf6debd5 100644 --- a/docs/extras/use_cases/question_answering/question_answering.ipynb +++ b/docs/extras/use_cases/question_answering/question_answering.ipynb @@ -14,7 +14,7 @@ "\n", "In this walkthrough we'll go over how to build a question-answering over documents application using LLMs. Two very related use cases which we cover elsewhere are:\n", "- [QA over structured data](/docs/use_cases/sql) (e.g., SQL)\n", - "- [QA over code](/docs/use_cases/code) (e.g., Python)\n", + "- [QA over code](/docs/use_cases/code_understanding) (e.g., Python)\n", "\n", "![intro.png](/img/qa_intro.png)\n", "\n",