fix linting
This commit is contained in:
@@ -1917,6 +1917,7 @@ async def kg_query_with_keywords(
|
|||||||
|
|
||||||
return response
|
return response
|
||||||
|
|
||||||
|
|
||||||
async def query_with_keywords(
|
async def query_with_keywords(
|
||||||
query: str,
|
query: str,
|
||||||
prompt: str,
|
prompt: str,
|
||||||
|
@@ -891,6 +891,7 @@ def lazy_external_import(module_name: str, class_name: str) -> Callable[..., Any
|
|||||||
|
|
||||||
return import_class
|
return import_class
|
||||||
|
|
||||||
|
|
||||||
def get_content_summary(content: str, max_length: int = 100) -> str:
|
def get_content_summary(content: str, max_length: int = 100) -> str:
|
||||||
"""Get summary of document content
|
"""Get summary of document content
|
||||||
|
|
||||||
@@ -906,6 +907,7 @@ def get_content_summary(content: str, max_length: int = 100) -> str:
|
|||||||
return content
|
return content
|
||||||
return content[:max_length] + "..."
|
return content[:max_length] + "..."
|
||||||
|
|
||||||
|
|
||||||
def clean_text(text: str) -> str:
|
def clean_text(text: str) -> str:
|
||||||
"""Clean text by removing null bytes (0x00) and whitespace
|
"""Clean text by removing null bytes (0x00) and whitespace
|
||||||
|
|
||||||
@@ -917,6 +919,7 @@ def clean_text(text: str) -> str:
|
|||||||
"""
|
"""
|
||||||
return text.strip().replace("\x00", "")
|
return text.strip().replace("\x00", "")
|
||||||
|
|
||||||
|
|
||||||
def check_storage_env_vars(storage_name: str) -> None:
|
def check_storage_env_vars(storage_name: str) -> None:
|
||||||
"""Check if all required environment variables for storage implementation exist
|
"""Check if all required environment variables for storage implementation exist
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user