Skip to content

Commit

Permalink
backend: Fix unable to import ddg by installing langchain_community
Browse files Browse the repository at this point in the history
  • Loading branch information
StreetLamb committed Apr 23, 2024
1 parent 638e454 commit 19fe1c4
Show file tree
Hide file tree
Showing 3 changed files with 673 additions and 592 deletions.
7 changes: 2 additions & 5 deletions backend/app/core/graph/tools.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# from langchain_community.tools import DuckDuckGoSearchRun
from langchain_community.tools import DuckDuckGoSearchRun
from langchain_core.tools import tool


Expand All @@ -8,7 +8,4 @@ def nothing(query: str) -> str:
return ""


all_tools = {
"nothing": nothing,
# "search": DuckDuckGoSearchRun()
}
all_tools = {"nothing": nothing, "search": DuckDuckGoSearchRun()}
Loading

0 comments on commit 19fe1c4

Please sign in to comment.