Skip to content

Commit

Permalink
Update README.md (InternLM#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
tackhwa authored Aug 16, 2024
1 parent ccdd5bb commit 1e50688
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,25 @@ python frontend/mindsearch_gradio.py
streamlit run frontend/mindsearch_streamlit.py
```

## 🌐 Change Web Search API

To use a different type of web search API, modify the `searcher_type` attribute in the `searcher_cfg` located in `mindsearch/agent/__init__.py`. Currently supported web search APIs include:

- `GoogleSearch`
- `DuckDuckGoSearch`
- `BraveSearch`
- `BingSearch`

For example, to change to the Brave Search API, you would configure it as follows:

```python
BingBrowser(
searcher_type='BraveSearch',
topk=2,
api_key=os.environ.get('BRAVE_API_KEY', 'YOUR BRAVE API')
)
```

## 🐞 Debug Locally

```bash
Expand Down

0 comments on commit 1e50688

Please sign in to comment.