From 17a34e6d3e72b03b06effbc782e02fd5c47d6bd3 Mon Sep 17 00:00:00 2001 From: ZhangShenao <15201440436@163.com> Date: Wed, 27 Nov 2024 06:43:49 +0800 Subject: [PATCH] Improve api docs (#1629) --- py/core/parsers/media/audio_parser.py | 2 -- py/core/parsers/media/img_parser.py | 1 - py/core/pipelines/graph_enrichment.py | 2 +- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/py/core/parsers/media/audio_parser.py b/py/core/parsers/media/audio_parser.py index 1d4421d37..761c56b2d 100644 --- a/py/core/parsers/media/audio_parser.py +++ b/py/core/parsers/media/audio_parser.py @@ -44,8 +44,6 @@ async def ingest( # type: ignore Args: data: Raw audio bytes - chunk_size: Size of text chunks to yield - model: The model to use for transcription (default is whisper-1) *args, **kwargs: Additional arguments passed to the transcription call Yields: diff --git a/py/core/parsers/media/img_parser.py b/py/core/parsers/media/img_parser.py index 719440a4c..3d7793ae0 100644 --- a/py/core/parsers/media/img_parser.py +++ b/py/core/parsers/media/img_parser.py @@ -45,7 +45,6 @@ async def ingest( # type: ignore Args: data: Image data (bytes or base64 string) - chunk_size: Size of text chunks to yield *args, **kwargs: Additional arguments passed to the completion call Yields: diff --git a/py/core/pipelines/graph_enrichment.py b/py/core/pipelines/graph_enrichment.py index e45c8881f..d999628af 100644 --- a/py/core/pipelines/graph_enrichment.py +++ b/py/core/pipelines/graph_enrichment.py @@ -10,7 +10,7 @@ class KGEnrichmentPipeline(AsyncPipeline): - """A pipeline for enhancing the graph with communities, connnected components etc.""" + """A pipeline for enhancing the graph with communities, connected components etc.""" pipeline_type: str = "other"