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

Make the get request tool more reliable for StructuredAgent #1453

Merged
merged 1 commit into from
May 30, 2023

Conversation

emilsedgh
Copy link
Contributor

@emilsedgh emilsedgh commented May 30, 2023

StructuredAgent needs to format this to {action, action_input} format where action_input: string. However, gpt-3.5-turbo very frequently fails to do so. Instead it generates formats like this: {action, action_input: {url}}.

This tiny prompt change makes it more reliable.

StructuredAgent needs to format this to {action, action_input} format
where `action_input: string`. However, gpt-3.5-turbo very frequently fails to do so.
Instead it generates formats like this: `{action, action_input: {url}}`.

This tiny prompt change makes it more reliable.
@vercel
Copy link

vercel bot commented May 30, 2023

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

Name Status Preview Updated (UTC)
langchainjs-docs ✅ Ready (Inspect) Visit Preview May 30, 2023 6:22am

@jacoblee93 jacoblee93 changed the title Make it more reliable for StructuredAgent Make the get request tool more reliable for StructuredAgent May 30, 2023
@jacoblee93 jacoblee93 self-assigned this May 30, 2023
@jacoblee93 jacoblee93 added the lgtm PRs that are ready to be merged as-is label May 30, 2023
@jacoblee93
Copy link
Collaborator

Thank you!

@jacoblee93 jacoblee93 merged commit cd69ebf into langchain-ai:main May 30, 2023
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm PRs that are ready to be merged as-is
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants