mirror of
https://github.com/hwchase17/langchain
synced 2024-11-06 03:20:49 +00:00
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
This commit is contained in:
parent
94efede93c
commit
e34dde3d15
@ -52,6 +52,7 @@
|
|||||||
" prompt: str,\n",
|
" prompt: str,\n",
|
||||||
" stop: Optional[List[str]] = None,\n",
|
" stop: Optional[List[str]] = None,\n",
|
||||||
" run_manager: Optional[CallbackManagerForLLMRun] = None,\n",
|
" run_manager: Optional[CallbackManagerForLLMRun] = None,\n",
|
||||||
|
" **kwargs: Any,\n",
|
||||||
" ) -> str:\n",
|
" ) -> str:\n",
|
||||||
" if stop is not None:\n",
|
" if stop is not None:\n",
|
||||||
" raise ValueError(\"stop kwargs are not permitted.\")\n",
|
" raise ValueError(\"stop kwargs are not permitted.\")\n",
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
"\n",
|
"\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",
|
"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 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",
|
"\n",
|
||||||
"![intro.png](/img/qa_intro.png)\n",
|
"![intro.png](/img/qa_intro.png)\n",
|
||||||
"\n",
|
"\n",
|
||||||
|
Loading…
Reference in New Issue
Block a user