Skip to content

Commit

Permalink
limit context['vertices'] and context['edges']
Browse files Browse the repository at this point in the history
  • Loading branch information
MrJs133 committed Dec 30, 2024
1 parent 8f78060 commit bee4ca2
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import gradio as gr

from pyhugegraph.client import PyHugeClient
from hugegraph_llm.utils.log import log


class FetchGraphData:
Expand All @@ -31,7 +30,7 @@ def run(self, graph_summary_info: Optional[Dict[str, Any]]) -> Dict[str, Any]:
limit_vertices = 10000
limit_edges = 100
gr.Info(f"Returning a maximum of {limit_vertices} vertices. \n Returning a maximum of {limit_edges} edges.")

if graph_summary_info is None:
graph_summary_info = {}
if "num_vertices" not in graph_summary_info:
Expand Down

0 comments on commit bee4ca2

Please sign in to comment.