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

Feature/Add message history to agents #3031

Merged
merged 1 commit into from
Aug 17, 2024

Conversation

HenryHengZJ
Copy link
Contributor

@HenryHengZJ HenryHengZJ commented Aug 17, 2024

Adding few shot messages can greatly increase model performance, especially when it comes to function calling.

Reference: https://blog.langchain.dev/few-shot-prompting-to-improve-tool-calling-performance/

@HenryHengZJ HenryHengZJ merged commit 0a36aa7 into main Aug 17, 2024
2 checks passed
@jazzandrock
Copy link

Hi guys! I was playing with your example called "Advanced Structured Output Parser" from the Marketplaces tab, and it didn't work. I think it's because of this line from this PR:

if ((messageHistory && messageHistory === 'messageHistoryCode') || (selectedTab === 'messageHistoryCode' && messageHistoryCode)) {

Where messageHistoryCode can be undefined.

With this line modified to check for messageHistoryCode, the example works. Maybe this is a bug.

Anyway, thank you for the amazing product!

@HenryHengZJ
Copy link
Contributor Author

Hey @jazzandrock thanks for the heads-up! Would you be able to submit a PR fix? Happy to accept!

patrickreinan pushed a commit to patrickreinan/Flowise that referenced this pull request Sep 3, 2024
patrickreinan pushed a commit to patrickreinan/Flowise that referenced this pull request Sep 3, 2024
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.

2 participants