Skip to content

Replace Azure Bing Search with DuckDuckGo in Chapter 2#698

Open
ashwin-r11 wants to merge 1 commit intofastai:masterfrom
ashwin-r11:master
Open

Replace Azure Bing Search with DuckDuckGo in Chapter 2#698
ashwin-r11 wants to merge 1 commit intofastai:masterfrom
ashwin-r11:master

Conversation

@ashwin-r11
Copy link

@ashwin-r11 ashwin-r11 commented Dec 8, 2025

Description (issue #696 )

This PR updates 02_production.ipynb to use duckduckgo_search instead of the Azure Bing Image Search API.

Motivation

The existing instructions for Azure Bing Search are outdated. Microsoft now requires a credit card for account creation (even for the free tier), and the API endpoints vary based on when the resource was created. This creates a high barrier to entry for learners starting Chapter 2.
Using DuckDuckGo removes the dependency on an external API key and allows the notebook to run out-of-the-box.

Changes

  • Removed AZURE_SEARCH_KEY configuration.
  • Added !pip install -Uqq duckduckgo_search.
  • Replaced search_images_bing with a search_images wrapper around DDGS.
  • Updated the example call to use the new function signature.

Testing

Ran the notebook in Colab/locally. Images download successfully without authentication errors.

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@ashwin-r11 ashwin-r11 changed the title Replace Azure Bing Search with DuckDuckGo in Chapter 2 issue #696 Replace Azure Bing Search with DuckDuckGo in Chapter 2 issue Dec 8, 2025
@ashwin-r11 ashwin-r11 changed the title Replace Azure Bing Search with DuckDuckGo in Chapter 2 issue Replace Azure Bing Search with DuckDuckGo in Chapter 2 Dec 8, 2025
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.

1 participant