-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Multi scraper implementation #361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would merge the scripts coming out from GraphIteratorNode in one single script. E.g. giving the generated scripts to the llm and tell it to generate a single script, probably it will create a loop that scrapes all the websites requested.
graph LR
A[scripts - list] --> B[MergeGeneratedScriptsNode]
B --> C[script - str]
Also you need to ask to stick with the input schema so the llm will understand how the output should be
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new node will be similar to the current MergeAnswersNode
input: str, | ||
output: List[str], | ||
node_config: Optional[dict] = None, | ||
node_name: str = "MergeAnswers", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"MergeGeneratedScripts"
inputs = {"user_prompt": self.prompt, "urls": self.source} | ||
print("self.prompt", self.prompt) | ||
self.final_state, self.execution_info = self.graph.execute(inputs) | ||
print("self.prompt", self.final_state) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To remove the prints
🎉 This PR is included in version 1.7.0-beta.3 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
No description provided.