Looks like XML tags are the best way to structure prompts and separate sections for an #LLM. It’s the only format that all of Anthropic, Google, and OpenAI LLMs encourage. For example: … … … … Anthropic Docs: https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering/use-xml-tags OpenAI Docs: https://platform.openai.com/docs/guides/prompt-engineering/strategy-write-clear-instructions Google Docs: https://cloud.google.com/vertex-ai/generative-ai/docs/learn/prompts/structure-prompts Alternatives are using JSON, Markdown, templating formats like Mustache/Jinja, etc. Even Llama’s system tokens seem a little XML-like. https://github.com/meta-llama/llama3/blob/main/llama/tokenizer.py#L61-L74 Personally, I’ve been using Markdown so far. But it’s time to switch over. (Only on the prompt side. On the generation side, Markdown still seems the best.) ...
xml 5
2024 1
2007 1
RSS feeds in Excel
The technique of Web lookups in Excel I described yesterday is very versatile. I will be running through some of the practical uses it can be put to over the next few days TO generalise things beyond just getting the Amazon price, I created a user-defined function called XPATH. It takes two parameters: URL of the XML feed to read Search XPath list string (separated by spaces) This function can be used to extract information out of any XML file on the Web and get it out as a table. For example, if you wanted to watch the Top 10 movies on the IMDb Top 250, and were looking for torrents, an RSS feed is available from mininova. The URL http://www.mininova.org/rss/movie_name/4 gives you an RSS file matching all movies with “movie_name”. From this, we need to extract the and <item><link> elements. That’s represented by “//item title link” on my search string. ...
2006 1
IIMB PGP99 Birthday calendar
The IIMB PGP99 Birthday calendar is online. You can add it to Google Calendar, iCal or Mozilla Calendar. Here’s the XML version.
2005 2
Droogle
Droogle. Drink recipes. Comments Jetru 24 Mar 2005 5:04 pm: Doesnt look like the XML feed is working… Deshi 24 Mar 2005 6:17 pm: This is one lousy blog! Genmys 25 Mar 2005 1:49 am: Lassi features as South Indian drink. Obscure results for Butter Milk ritzkini 25 Mar 2005 8:13 am: Bandwidth Limit Exceeded.The server is temporarily unable to service your request due to the site owner reaching his/her bandwidth limit. Please try again later.Apache/1.3.33 Server at www.droogle.ca Port 80(25/03/2005-at 1:45 PM IST) Shamit 26 Mar 2005 4:41 am: It is getting a bit cluttered … S Anand 28 Mar 2005 3:20 am: Yes, it is, rather. Will see what I can do about that. S Anand 30 Mar 2005 7:23 am: Fixed the XML feed.
RSS feed
My RSS feed is back.