MCPcopy Create free account
hub / github.com/THUDM/AgentTuning / __init__

Method __init__

eval_heldout/rewoo/nodes/Worker.py:222–228  ·  view source on GitHub ↗
(self, doc_name, doc_path, name="SearchDoc")

Source from the content-addressed store, hash-verified

220class SearchDocWorker(Node):
221
222 def __init__(self, doc_name, doc_path, name="SearchDoc"):
223 super().__init__(name, input_type=str, output_type=str)
224 self.isLLMBased = True
225 self.doc_path = doc_path
226 self.description = f"A vector store that searches for similar and related content in document: {doc_name}. " \
227 f"The result is a huge chunk of text related to your search but can also " \
228 f"contain irrelevant info. Input should be a search query."
229
230 def run(self, input, log=False):
231 assert isinstance(input, self.input_type)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected