Skip to content

Commit

Permalink
Swap to langchain-experimental for SQLDatabaseChain in MRKL demo (lan…
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-jcarroll authored Aug 22, 2023
1 parent 64e64e4 commit 910156b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
16 changes: 15 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ sentence-transformers = "^2.2.2"
torch = ">=2.0.0, !=2.0.1"
tabulate = "^0.9.0"
streamlit-feedback = "^0.0.9"
langchain-experimental = "^0.0.10"

[tool.poetry.group.dev.dependencies]
black = "^23.3.0"
Expand Down
3 changes: 2 additions & 1 deletion streamlit_agent/mrkl_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
from langchain.agents import AgentType
from langchain.agents import initialize_agent, Tool
from langchain.callbacks import StreamlitCallbackHandler
from langchain.chains import LLMMathChain, SQLDatabaseChain
from langchain.chains import LLMMathChain
from langchain.llms import OpenAI
from langchain.utilities import DuckDuckGoSearchAPIWrapper
from langchain_experimental.sql import SQLDatabaseChain

from streamlit_agent.callbacks.capturing_callback_handler import playback_callbacks
from streamlit_agent.clear_results import with_clear_container
Expand Down

0 comments on commit 910156b

Please sign in to comment.