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

Add new Apify-Haystack RAG Web Browser example notebook and update README and index.toml #159

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ohlava
Copy link

@ohlava ohlava commented Jan 10, 2025

Add Cookbook: RAG Web Search and Analysis with Apify and Haystack

This PR introduces a new cookbook example. This example demonstrates how to integrate Apify’s RAG Web Browser Actor with Haystack to enable LLM applications to search the web, extract content, and analyze the results using a language model.

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@ohlava ohlava changed the title Add new example notebook and update README and index.toml Add new Apify-Haystack RAG Web Browser example notebook and update README and index.toml Jan 10, 2025
@@ -0,0 +1,479 @@
{
Copy link
Contributor

@bilgeyucel bilgeyucel Jan 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you give more info around the how this actor works? something like "First, we need to understand how RAG Web Browser Actor works and its output format. It accepts a search phrase or URL, performs a Google Search, crawls web pages from the top search results, cleans the HTML, and converts the content into text or Markdown"


Reply via ReviewNB

@@ -0,0 +1,479 @@
{
Copy link
Contributor

@bilgeyucel bilgeyucel Jan 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line #3.    generator = OpenAIGenerator(model="gpt-3.5-turbo")

This model is deprecated. You should use gpt-4o-mini or gpt-4o instead


Reply via ReviewNB

@@ -0,0 +1,479 @@
{
Copy link
Contributor

@bilgeyucel bilgeyucel Jan 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line #53.        generator = OpenAIGenerator(model="gpt-3.5-turbo")

Same here


Reply via ReviewNB

Copy link
Contributor

@bilgeyucel bilgeyucel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the cookbook @ohlava! I left some comments, they're all minor changes :)

[[cookbook]]
title = "RAG: Web Search and Analysis with Apify and Haystack"
notebook = "apify_haystack_rag_web_browser.ipynb"
topics = ["Web Search", "Analysis", "RAG"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
topics = ["Web Search", "Analysis", "RAG"]
topics = ["Web-QA", "Data Scraping", "RAG"]

@jirispilka
Copy link
Contributor

@bilgeyucel thank you, all valid points. We'll fix it.

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.

3 participants