MCPcopy Create free account
hub / github.com/ScrapeGraphAI/Scrapegraph-ai / __init__

Method __init__

scrapegraphai/nodes/rag_node.py:28–41  ·  view source on GitHub ↗
(
        self,
        input: str,
        output: List[str],
        node_config: Optional[dict] = None,
        node_name: str = "RAG",
    )

Source from the content-addressed store, hash-verified

26 """
27
28 def __init__(
29 self,
30 input: str,
31 output: List[str],
32 node_config: Optional[dict] = None,
33 node_name: str = "RAG",
34 ):
35 super().__init__(node_name, "node", input, output, 2, node_config)
36
37 self.llm_model = node_config["llm_model"]
38 self.embedder_model = node_config.get("embedder_model", None)
39 self.verbose = (
40 False if node_config is None else node_config.get("verbose", False)
41 )
42
43 def execute(self, state: dict) -> dict:
44 self.logger.info(f"--- Executing {self.node_name} Node ---")

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected