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

Temp patch to remove multiple tool calls (#2720) #2724

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

Weves
Copy link
Contributor

@Weves Weves commented Oct 8, 2024

^

Copy link

vercel bot commented Oct 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
internal-search ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 8, 2024 6:44pm

Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

This PR implements a temporary patch to remove multiple tool calls in the Answer class of the DAnswer system.

  • Modifies _raw_output_for_explicit_tool_calling_llms method in /backend/danswer/llm/answering/answer.py
  • Removes passing of tool definitions to LLM stream, potentially limiting multi-tool functionality
  • Change is described as a temporary fix, suggesting a more permanent solution may be implemented later
  • May impact system's ability to use multiple tools in sequence for complex queries

1 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings

Comment on lines +319 to +321
# as of now, we don't support multiple tool calls in sequence, which is why
# we don't need to pass this in here
# tools=[tool.tool_definition() for tool in self.tools],
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logic: Removing tool definitions may prevent multiple tool calls. Consider the implications on system functionality.

@Weves Weves merged commit 1f0af86 into release/v0.7 Oct 8, 2024
6 checks passed
@Weves Weves deleted the hotfix/v0.7-tool-calling-change branch October 8, 2024 20:22
@Weves Weves restored the hotfix/v0.7-tool-calling-change branch October 9, 2024 03:40
@rkuo-danswer rkuo-danswer deleted the hotfix/v0.7-tool-calling-change branch October 23, 2024 04:33
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

Successfully merging this pull request may close these issues.

1 participant