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:
Geonwoo Kim 2023-09-04 08:15:46 +09:00 committed by GitHub
parent 94efede93c
commit e34dde3d15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -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",

View File

@ -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",