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

YDC tool broken #325

Open
thierryteisseire opened this issue Apr 30, 2024 · 0 comments
Open

YDC tool broken #325

thierryteisseire opened this issue Apr 30, 2024 · 0 comments

Comments

@thierryteisseire
Copy link

Hello All,

Using the last version of the repo on ubuntu 20.

The You.com tool seems broken with error.
Someone knows why we have this?
Thanks all !

TypeError("Invalid variable type: value should be str, int or float, got <langchain_core.callbacks.manager.AsyncCallbackManager object at 0x7f9b94242a50> of type <class 'langchain_core.callbacks.manager.AsyncCallbackManager'>")Traceback (most recent call last):

File "/usr/local/lib/python3.11/site-packages/langchain_core/tools.py", line 480, in arun
await self._arun(*tool_args, run_manager=run_manager, **tool_kwargs)

File "/usr/local/lib/python3.11/site-packages/langchain_core/tools.py", line 614, in _arun
await self.coroutine(

File "/usr/local/lib/python3.11/site-packages/langchain/tools/retriever.py", line 40, in _aget_relevant_documents
docs = await retriever.aget_relevant_documents(query, callbacks=callbacks)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/usr/local/lib/python3.11/site-packages/langchain_core/retrievers.py", line 384, in aget_relevant_documents
raise e

File "/usr/local/lib/python3.11/site-packages/langchain_core/retrievers.py", line 377, in aget_relevant_documents
result = await self._aget_relevant_documents(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/usr/local/lib/python3.11/site-packages/langchain_community/retrievers/you.py", line 35, in _aget_relevant_documents
results = await self.results_async(
^^^^^^^^^^^^^^^^^^^^^^^^^

File "/usr/local/lib/python3.11/site-packages/langchain_community/utilities/you.py", line 229, in results_async
raw_search_results_async = await self.raw_results_async(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/usr/local/lib/python3.11/site-packages/langchain_community/utilities/you.py", line 213, in raw_results_async
async with session.get(

File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 1187, in aenter
self._resp = await self._coro
^^^^^^^^^^^^^^^^

File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 541, in _request
req = self._request_class(
^^^^^^^^^^^^^^^^^^^^

File "/usr/local/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 302, in init
url2 = url.with_query(params)
^^^^^^^^^^^^^^^^^^^^^^

File "/usr/local/lib/python3.11/site-packages/yarl/_url.py", line 1008, in with_query
new_query = self._get_str_query(*args, **kwargs) or ""
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/usr/local/lib/python3.11/site-packages/yarl/_url.py", line 969, in _get_str_query
query = "&".join(self._query_seq_pairs(quoter, query.items()))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/usr/local/lib/python3.11/site-packages/yarl/_url.py", line 932, in _query_seq_pairs
yield quoter(key) + "=" + quoter(cls._query_var(val))
^^^^^^^^^^^^^^^^^^^

File "/usr/local/lib/python3.11/site-packages/yarl/_url.py", line 947, in _query_var
raise TypeError(

TypeError: Invalid variable type: value should be str, int or float, got <langchain_core.callbacks.manager.AsyncCallbackManager object at 0x7f9b94242a50> of type <class 'langchain_core.callbacks.manager.AsyncCallbackManager'>

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

1 participant