Commit 2139e37
fix(search): restore SearchGraph by migrating DuckDuckGo backend to ddgs (#1083)
The 'duckduckgo-search' package was renamed to 'ddgs'. Recent
langchain-community releases import 'from ddgs import DDGS' in their
DuckDuckGoSearchResults tool, so with the old dependency installed the
default SearchGraph path raised ImportError and returned no results
(GH #1082).
Replace the langchain-community DuckDuckGo wrapper with a direct ddgs
call in research_web._search_duckduckgo, extracting result URLs from the
structured 'href' field instead of regex-parsing a formatted string.
Swap the 'duckduckgo-search' dependency for 'ddgs>=9.0.0'.
Fixes #1082
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent bdf69f6 commit 2139e37
3 files changed
Lines changed: 312 additions & 1457 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
| |||
215 | 214 | | |
216 | 215 | | |
217 | 216 | | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
224 | 220 | | |
225 | 221 | | |
226 | 222 | | |
| |||
247 | 243 | | |
248 | 244 | | |
249 | 245 | | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
250 | 285 | | |
251 | 286 | | |
252 | 287 | | |
| |||
0 commit comments