| 220 | class 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) |