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

"Error: TypeError('_new_to_args_and_kwargs() takes 2 positional arguments but 3 were given') Please fix your mistakes." #98

Open
cloudyliu1 opened this issue Jan 10, 2025 · 0 comments
Assignees

Comments

@cloudyliu1
Copy link

在使用RAG方式问答时提示错误:
"Error: TypeError('_new_to_args_and_kwargs() takes 2 positional arguments but 3 were given')
Please fix your mistakes."
修改_new_to_args_and_kwargs,临时加入了id参数后不再提示错误,请问id做何用?如何根本解决问题,谢谢!
def _new_to_args_and_kwargs(self, id, tool_input: Union[str, Dict]) -> Tuple[Tuple, Dict]:

@yuehua-s yuehua-s self-assigned this Jan 13, 2025
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