mrkl and search-and-chat examples not working #21

Open
opened 2026-02-15 19:15:23 -05:00 by yindo · 2 comments
Owner

Originally created by @TastyMojito on GitHub (Apr 10, 2024).

just tried the above mentioned two examples with my own freshly created openai api key and got error messages. one was:

duckduckgo_search.exceptions.DuckDuckGoSearchException: This app has encountered an error. The original error message is redacted to prevent data leaks. Full error details have been recorded in the logs (if you're on Streamlit Cloud, click on 'Manage app' in the lower right of your app). [...]

Originally created by @TastyMojito on GitHub (Apr 10, 2024). just tried the above mentioned two examples with my own freshly created openai api key and got error messages. one was: duckduckgo_search.exceptions.DuckDuckGoSearchException: This app has encountered an error. The original error message is redacted to prevent data leaks. Full error details have been recorded in the logs (if you're on Streamlit Cloud, click on 'Manage app' in the lower right of your app). [...]
Author
Owner

@TastyMojito commented on GitHub (Apr 10, 2024):

some further remarks: i refered to the example implementation given in the readme file. search-and-chat is working flawlessly on my machine.

@TastyMojito commented on GitHub (Apr 10, 2024): some further remarks: i refered to the example implementation given in the readme file. search-and-chat is working flawlessly on my machine.
Author
Owner

@kovla commented on GitHub (May 7, 2024):

Search-and-chat does not work for me as well. It is for a different reason, but it might under this issue still. There error is this, and may be related to recent updates to Langchain, perhaps?

AssertionError: The input to RunnablePassthrough.assign() must be a dict.
Traceback:
File "/home/user/miniconda3/envs/shiny_py/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 542, in _run_script
    exec(code, module.__dict__)
File "/home/user/streamlit/lc1/app.py", line 98, in <module>
    response = agent_with_chat_history.invoke(prompt,
File "/home/user/miniconda3/envs/shiny_py/lib/python3.10/site-packages/langchain_core/runnables/base.py", line 4525, in invoke
    return self.bound.invoke(
File "/home/user/miniconda3/envs/shiny_py/lib/python3.10/site-packages/langchain_core/runnables/base.py", line 4525, in invoke
    return self.bound.invoke(
File "/home/user/miniconda3/envs/shiny_py/lib/python3.10/site-packages/langchain_core/runnables/base.py", line 2499, in invoke
    input = step.invoke(
File "/home/user/miniconda3/envs/shiny_py/lib/python3.10/site-packages/langchain_core/runnables/base.py", line 4525, in invoke
    return self.bound.invoke(
File "/home/user/miniconda3/envs/shiny_py/lib/python3.10/site-packages/langchain_core/runnables/passthrough.py", line 469, in invoke
    return self._call_with_config(self._invoke, input, config, **kwargs)
File "/home/user/miniconda3/envs/shiny_py/lib/python3.10/site-packages/langchain_core/runnables/base.py", line 1626, in _call_with_config
    context.run(
File "/home/user/miniconda3/envs/shiny_py/lib/python3.10/site-packages/langchain_core/runnables/config.py", line 347, in call_func_with_variable_args
    return func(input, **kwargs)  # type: ignore[call-arg]
File "/home/user/miniconda3/envs/shiny_py/lib/python3.10/site-packages/langchain_core/runnables/passthrough.py", line 450, in _invoke
    assert isinstance(
@kovla commented on GitHub (May 7, 2024): Search-and-chat does not work for me as well. It is for a different reason, but it might under this issue still. There error is this, and may be related to recent updates to Langchain, perhaps? ``` AssertionError: The input to RunnablePassthrough.assign() must be a dict. Traceback: File "/home/user/miniconda3/envs/shiny_py/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 542, in _run_script exec(code, module.__dict__) File "/home/user/streamlit/lc1/app.py", line 98, in <module> response = agent_with_chat_history.invoke(prompt, File "/home/user/miniconda3/envs/shiny_py/lib/python3.10/site-packages/langchain_core/runnables/base.py", line 4525, in invoke return self.bound.invoke( File "/home/user/miniconda3/envs/shiny_py/lib/python3.10/site-packages/langchain_core/runnables/base.py", line 4525, in invoke return self.bound.invoke( File "/home/user/miniconda3/envs/shiny_py/lib/python3.10/site-packages/langchain_core/runnables/base.py", line 2499, in invoke input = step.invoke( File "/home/user/miniconda3/envs/shiny_py/lib/python3.10/site-packages/langchain_core/runnables/base.py", line 4525, in invoke return self.bound.invoke( File "/home/user/miniconda3/envs/shiny_py/lib/python3.10/site-packages/langchain_core/runnables/passthrough.py", line 469, in invoke return self._call_with_config(self._invoke, input, config, **kwargs) File "/home/user/miniconda3/envs/shiny_py/lib/python3.10/site-packages/langchain_core/runnables/base.py", line 1626, in _call_with_config context.run( File "/home/user/miniconda3/envs/shiny_py/lib/python3.10/site-packages/langchain_core/runnables/config.py", line 347, in call_func_with_variable_args return func(input, **kwargs) # type: ignore[call-arg] File "/home/user/miniconda3/envs/shiny_py/lib/python3.10/site-packages/langchain_core/runnables/passthrough.py", line 450, in _invoke assert isinstance( ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/streamlit-agent#21