docs: docstrings langchain_community update (#14889)

Addded missed docstrings. Fixed inconsistency in docstrings.

**Note** CC @efriis 
There were PR errors on
`langchain_experimental/prompt_injection_identifier/hugging_face_identifier.py`
But, I didn't touch this file in this PR! Can it be some cache problems?
I fixed this error.
This commit is contained in:
Leonid Ganeline
2023-12-19 05:58:24 -08:00
committed by GitHub
parent 583696732c
commit b2fd41331e
35 changed files with 156 additions and 25 deletions

View File

@@ -9,11 +9,9 @@ from langchain_community.document_loaders.base import BaseLoader
class RSpaceLoader(BaseLoader):
"""
Loads content from RSpace notebooks, folders, documents or PDF Gallery files into
Langchain documents.
"""Load content from RSpace notebooks, folders, documents or PDF Gallery files.
Maps RSpace document <-> Langchain Document in 1-1. PDFs are imported using PyPDF.
Map RSpace document <-> Langchain Document in 1-1. PDFs are imported using PyPDF.
Requirements are rspace_client (`pip install rspace_client`) and PyPDF if importing
PDF docs (`pip install pypdf`).
@@ -45,7 +43,7 @@ class RSpaceLoader(BaseLoader):
@classmethod
def validate_environment(cls, values: Dict) -> Dict:
"""Validate that API key and URL exists in environment."""
"""Validate that API key and URL exist in environment."""
values["api_key"] = get_from_dict_or_env(values, "api_key", "RSPACE_API_KEY")
values["url"] = get_from_dict_or_env(values, "url", "RSPACE_URL")
if "global_id" not in values or values["global_id"] is None: