From 2da1aab50b43c63c7a9a9553b7290230c44604bc Mon Sep 17 00:00:00 2001 From: Davis Chase <130488702+dev2049@users.noreply.github.com> Date: Fri, 23 Jun 2023 16:05:42 -0700 Subject: [PATCH] Wiki loader lint (#6670) --- langchain/document_loaders/wikipedia.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/langchain/document_loaders/wikipedia.py b/langchain/document_loaders/wikipedia.py index e9e5fca1f0a..5f0bbb73cd5 100644 --- a/langchain/document_loaders/wikipedia.py +++ b/langchain/document_loaders/wikipedia.py @@ -25,10 +25,14 @@ class WikipediaLoader(BaseLoader): Args: query (str): The query string to search on Wikipedia. - lang (str, optional): The language code for the Wikipedia language edition. Defaults to "en". - load_max_docs (int, optional): The maximum number of documents to load. Defaults to 100. - load_all_available_meta (bool, optional): Indicates whether to load all available metadata for each document. Defaults to False. - doc_content_chars_max (int, optional): The maximum number of characters for the document content. Defaults to 4000. + lang (str, optional): The language code for the Wikipedia language edition. + Defaults to "en". + load_max_docs (int, optional): The maximum number of documents to load. + Defaults to 100. + load_all_available_meta (bool, optional): Indicates whether to load all + available metadata for each document. Defaults to False. + doc_content_chars_max (int, optional): The maximum number of characters + for the document content. Defaults to 4000. """ self.query = query self.lang = lang @@ -41,7 +45,8 @@ class WikipediaLoader(BaseLoader): Loads the query result from Wikipedia into a list of Documents. Returns: - List[Document]: A list of Document objects representing the loaded Wikipedia pages. + List[Document]: A list of Document objects representing the loaded + Wikipedia pages. """ client = WikipediaAPIWrapper( lang=self.lang,