-
Notifications
You must be signed in to change notification settings - Fork 1
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
Enhance prompting with techniques heard at Anthropic Vertex AI RAG talk #45
Comments
(We pass the declarations natively anyway, so leaving out the extra XML saves a good number of tokens. Extra XML didn't improve anything, it rather seemed to confuse or degrade the function calling capability)
…er models are better out of the box regarding strategical thinking. #45
…watermark history retrieval #45 align translation and resolver prompts for all this
…ag. The strippedText needs to take into account that the opening tag might not be in the response! #45
Note that Anthropic prompt conversations can differ from Gemini or OpenAI or other LLMs, it mainly depends on how they were trained and RLHFd. |
We mostly refactored the prompts. It's a question how much these Anthropic style XML tags are bode well with Gemini. Time will tell. |
Related repo: https://github.com/anthropics/courses/tree/master/real_world_prompting
There were some good blueprints about prompt sections and the ordering of those:
![Screenshot_2024-08-28_11-15-21](https://private-user-images.githubusercontent.com/744949/362488507-723019cc-daaa-48b6-8ae3-8ba42a152361.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyMjcxNDksIm5iZiI6MTczOTIyNjg0OSwicGF0aCI6Ii83NDQ5NDkvMzYyNDg4NTA3LTcyMzAxOWNjLWRhYWEtNDhiNi04YWUzLThiYTQyYTE1MjM2MS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMFQyMjM0MDlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yM2Y1Yzk3OWVmYWU4MjFkZjA3MjIwODQ2OTdiZjE1NjkyZTFhOWFkZmUxN2YyZDJkZDBjYmZmNDMwNWE3ZWIzJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.Wfo9wPzkC0TihEQOFuTEdtM16IMnIYCi2JlMeDP5acE)
![Screenshot_2024-08-28_11-22-39](https://private-user-images.githubusercontent.com/744949/362488520-0c63b60d-a894-4c54-9855-457d4e0e291b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyMjcxNDksIm5iZiI6MTczOTIyNjg0OSwicGF0aCI6Ii83NDQ5NDkvMzYyNDg4NTIwLTBjNjNiNjBkLWE4OTQtNGM1NC05ODU1LTQ1N2Q0ZTBlMjkxYi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMFQyMjM0MDlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wOTYzNmY3ZGIyNjNmYzk1MWM4YTY3NTczYjAxZWI5ZGU4NWYyZWU2NmYxNTVjZmIwMGJiYjU0Y2M5N2U1YjQzJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9._VGESwv16_V_sYxpHYICn2CZ3TAjL5GCBPSsVHwv1OY)
Note about the 2nd section: "Dynamic content / RAG (step 2) also covers Tools listing? How about chat history? What should be the order of RAG doc snippets, tool / function listing, tool return results, chat history?" Answer:
More slides:
Related: #44
The text was updated successfully, but these errors were encountered: