Skip to content

feat(retrievers): add Brave Search support#1793

Open
agbocsardi wants to merge 1 commit into
assafelovic:mainfrom
agbocsardi:feature/brave-search-retriever
Open

feat(retrievers): add Brave Search support#1793
agbocsardi wants to merge 1 commit into
assafelovic:mainfrom
agbocsardi:feature/brave-search-retriever

Conversation

@agbocsardi

Copy link
Copy Markdown

Summary

Adds Brave Search as a supported web retriever via RETRIEVER=brave.

Changes

  • Add BraveSearch retriever using the Brave Web Search API
  • Register brave in the retriever factory and valid retrievers
  • Normalize Brave results to GPT Researcher’s { title, href, body } shape
  • Add a clear BRAVE_API_KEY missing-key error
  • Document RETRIEVER=brave and BRAVE_API_KEY
  • Add tests for API key handling and result normalization

Notes

This complements #1780, which fixed generic snippet handling for Brave-like retriever results but did not add a core Brave retriever.

Testing

  • uv run --project gpt-researcher --with pytest --with pytest-asyncio pytest gpt-researcher/tests/test_brave_retriever.py gpt-researcher/tests/test_research_conductor_retrieval.py

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