-
Notifications
You must be signed in to change notification settings - Fork 16.1k
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
Change default Metaphor search example to use prompt optimizer #8890
Conversation
jeffzwang
commented
Aug 7, 2023
- fix install command
- change example notebook to use Metaphor autoprompt by default
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"@tool\n", | ||
"def search(query: str):\n", | ||
" \"\"\"Call search engine with a query.\"\"\"\n", | ||
" return client.search(query)\n", | ||
" \"\"\"Call search engine with a query. Use autoprompt by default to convert query to a Metaphor query.\"\"\"\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i actually think its BAD to put this in the docstring - the agent sees this docstring and this isnt a super relevant fact and could distract from the true parameters
Could add that note in a comment
speaking of, may be good to add a comment about docstrings mattering haha
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yes good point - I haven't played with this tool decorator syntax before, but obviously makes sense why that is the case. I guess I would like to have one comment that is the docstring and another that describes what the docstring does haha.