Correct the use of abstractmethod (#80)

* Correct abstractmethod usage

* Update interface

* Specify minimal llama-index version [ignore cache]

* Update examples
This commit is contained in:
Nguyen Trung Duc (john)
2023-11-20 11:18:53 +07:00
committed by GitHub
parent 98509f886c
commit 0a3fc4b228
12 changed files with 33 additions and 37 deletions

View File

@@ -1,7 +1,7 @@
import inspect
from collections import defaultdict
from theflow.utils.documentation import get_compose_documentation_from_module
from theflow.utils.documentation import get_function_documentation_from_module
def from_definition_to_markdown(definition: dict) -> str:
@@ -38,7 +38,7 @@ def from_definition_to_markdown(definition: dict) -> str:
def make_doc(module: str, output: str, separation_level: int):
"""Run exporting from compose to markdown
"""Run exporting components to markdown
Args:
module (str): module name
@@ -46,7 +46,7 @@ def make_doc(module: str, output: str, separation_level: int):
separation_level (int): level of separation
"""
documentation = sorted(
get_compose_documentation_from_module(module).items(), key=lambda x: x[0]
get_function_documentation_from_module(module).items(), key=lambda x: x[0]
)
entries = defaultdict(list)