mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-18 16:16:33 +00:00
community[patch]: docstrings (#16810)
- added missed docstrings - formated docstrings to the consistent form
This commit is contained in:
@@ -32,7 +32,8 @@ RETURN {start: label, type: property, end: toString(other_node)} AS output
|
||||
|
||||
|
||||
def value_sanitize(d: Dict[str, Any]) -> Dict[str, Any]:
|
||||
"""
|
||||
"""Sanitize the input dictionary.
|
||||
|
||||
Sanitizes the input dictionary by removing embedding-like values,
|
||||
lists with more than 128 elements, that are mostly irrelevant for
|
||||
generating answers in a LLM context. These properties, if left in
|
||||
@@ -63,7 +64,8 @@ def value_sanitize(d: Dict[str, Any]) -> Dict[str, Any]:
|
||||
|
||||
|
||||
class Neo4jGraph(GraphStore):
|
||||
"""Provides a connection to a Neo4j database for various graph operations.
|
||||
"""Neo4j database wrapper for various graph operations.
|
||||
|
||||
Parameters:
|
||||
url (Optional[str]): The URL of the Neo4j database server.
|
||||
username (Optional[str]): The username for database authentication.
|
||||
|
@@ -2,7 +2,7 @@ from typing import Any, Dict, List, Optional, Tuple, Union
|
||||
|
||||
|
||||
class NeptuneQueryException(Exception):
|
||||
"""A class to handle queries that fail to execute"""
|
||||
"""Exception for the Neptune queries."""
|
||||
|
||||
def __init__(self, exception: Union[str, Dict]):
|
||||
if isinstance(exception, dict):
|
||||
|
Reference in New Issue
Block a user