Skip to content

Commit

Permalink
Merge pull request #3 from StreetLamb/fix/import-ddg
Browse files Browse the repository at this point in the history
backend: Fix unable to import ddg by installing langchain_community
  • Loading branch information
StreetLamb authored Apr 23, 2024
2 parents 638e454 + 19fe1c4 commit ddcd2a5
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 ddcd2a5

Please sign in to comment.