From 829a1dcb982b28b3776013a0fa4f86857986ce13 Mon Sep 17 00:00:00 2001 From: Li Yin Date: Tue, 2 Jul 2024 21:02:35 -0700 Subject: [PATCH] add github link in documents --- docs/source/conf.py | 7 ++++++- docs/source/developer_notes/output_parsers.rst | 3 +++ lightrag/lightrag/components/output_parsers/outputs.py | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 77ae00ff..d9d059b1 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -85,9 +85,14 @@ # "includehidden": True, # "titles_only": False, "icon_links": [ + { + "name": "GitHub", + "url": "https://github.com/SylphAI-Inc/LightRAG", # Replace with your GitHub URL + "icon": "fa-brands fa-github", + }, { "name": "Discord", - "url": "https://discord.gg/hmZWFEUd", + "url": "https://discord.gg/ezzszrRZvT", "icon": "fa-brands fa-discord", }, ], diff --git a/docs/source/developer_notes/output_parsers.rst b/docs/source/developer_notes/output_parsers.rst index 25ddc738..314766a6 100644 --- a/docs/source/developer_notes/output_parsers.rst +++ b/docs/source/developer_notes/output_parsers.rst @@ -503,3 +503,6 @@ The output will be: - :ref:`OutputParser` - :class:`components.output_parsers.outputs.JsonOutputParser` - :class:`components.output_parsers.outputs.YamlOutputParser` + - :class:`components.output_parsers.outputs.OutputParser` + - :class:`components.output_parsers.outputs.BooleanOutputParser` + - :class:`components.output_parsers.outputs.ListOutputParser` diff --git a/lightrag/lightrag/components/output_parsers/outputs.py b/lightrag/lightrag/components/output_parsers/outputs.py index 211835e9..af5b4f51 100644 --- a/lightrag/lightrag/components/output_parsers/outputs.py +++ b/lightrag/lightrag/components/output_parsers/outputs.py @@ -191,7 +191,7 @@ def call(self, input: str) -> YAML_OUTPUT_PARSER_OUTPUT_TYPE: return self.output_processors(input) def _extra_repr(self) -> str: - s = f"data_class={self.data_class}, examples={self.examples}" + s = f"data_class={self.data_class.__name__}, examples={self.examples}, exclude_fields={self._exclude_fields}" return s