Skip to content
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

Added CSS selector to Cheerio #948

Merged
merged 1 commit into from
Sep 20, 2023

Conversation

matthias
Copy link
Contributor

Added selector parameter to Cheerio web loader

As described here: https://js.langchain.com/docs/modules/data_connection/document_loaders/integrations/web_loaders/web_cheerio

Improves the quality of the scraped content A LOT

@HenryHengZJ
Copy link
Contributor

awesome! @matthias what selector do you use that you can see improvement?

@matthias
Copy link
Contributor Author

We ingest from this Site: (example page)
https://www.waff.at/beruf-weiterbildung/karenz-und-wiedereinstieg/

The standard selector (body) will also ingest all menus, sidebars, footers, etc ... which add a lot of useless information.

So I can add "body > main > article" as a selector in this case.

@HenryHengZJ HenryHengZJ merged commit c0d9484 into FlowiseAI:main Sep 20, 2023
@matthias
Copy link
Contributor Author

🙏

hemati pushed a commit to hemati/Flowise that referenced this pull request Dec 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants