Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
TastyMojito opened this issue Apr 10, 2024 · 2 comments
Open

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

TastyMojito opened this issue Apr 10, 2024 · 2 comments

Comments

@TastyMojito
Copy link

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). [...]

@TastyMojito
Copy link
Author

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

@kovla
Copy link

kovla commented 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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants