This week, Google announced a doubling of Gemini Pro 1.5's input context window from 1 million to 2 million tokens, and OpenAI released GPT-4o, which generates tokens 2x faster and 50% cheaper than GPT-4 Turbo and natively accepts and generates multimodal tokens. I view these developments as the latest in an 18-month trend. Given the improvements we've seen, best practices for developers have changed as well.
Since the launch of ChatGPT in Nov 2022, with key milestones that include the releases of GPT-4, Gemini 1.5 Pro, Claude 3 Opus, and Llama 3-70B, many model providers have improved their capabilities in two important ways: (i) reasoning, which allows LLMs to think through complex concepts and and follow complex instructions; and (ii) longer input context windows.
The reasoning capability of GPT-4 and other advanced models makes them quite good at interpreting complex prompts with detailed instructions. Many people are used to dashing off a quick, 1- to 2-sentence query to an LLM. In contrast, when building applications, I see sophisticated teams frequently writing prompts that might be 1 to 2 pages long (my teams call them “mega-prompts”) that provide complex instructions to specify in detail how we’d like an LLM to perform a task. I still see teams not going far enough in terms of writing detailed instructions. For an example of a moderately lengthy prompt, take a look at Claude 3’s system prompt. It’s detailed and gives clear guidance on how Claude should behave.
This is a very different style of prompting than we typically use with LLMs’ web user interfaces, where we might dash off a quick query and, if the response is unsatisfactory, clarify what we want through repeated conversational turns with the chatbot.
Further, the increasing length of input context windows has added another technique to the developer’s toolkit. GPT-3 kicked off a lot of research on few-shot in-context learning. For example, if you’re using an LLM for text classification, you might give a handful — say 1 to 5 examples — of text snippets and their class labels, so that it can use those examples to generalize to additional texts. However, with longer input context windows — GPT-4o accepts 128,000 input tokens, Claude 3 Opus 200,000 tokens, and Gemini 1.5 Pro 1 million tokens (2 million just announced in a limited preview) — LLMs aren’t limited to a handful of examples. With many-shot learning, developers can give dozens, even hundreds of examples in the prompt, and this works better than few-shot learning.
When building complex workflows, I see developers getting good results with this process:
- Write quick, simple prompts and see how it does.
- Based on where the output falls short, flesh out the prompt iteratively. This often leads to a longer, more detailed, prompt, perhaps even a mega-prompt.
- If that’s still insufficient, consider few-shot or many-shot learning (if applicable) or, less frequently, fine-tuning.
- If that still doesn’t yield the results you need, break down the task into subtasks and apply an agentic workflow.
I hope a process like this will help you build applications more easily. If you’re interested in taking a deeper dive into prompting strategies, I recommend Microsoft's Medprompt paper (Nori et al., 2023), which lays out a complex set of prompting strategies that can lead to very good results.
[Original text (with links): https://t.co/UOtLDza1Vh ]
2 декабря говорил что стоит продать кВ и вложить в биток;)
Теперь когда $BTC 50K начнутся продажи квартир;)
Еще халвинг впереди, $ETH ETF в мае. Короче 2024 как и ожидалось прыснем шампанским.
Сидим кайфуем.
Думаю в этот забег биток 120К 140К до прыг… https://t.co/n3jDnoWV6M
Поменял свое мнение, закрыл в минус лонг $JTO, $TIA, $INJ, $DOGE
Встал в шорт по $NEAR, $FTM, $OP, $AVAX, $BAKE
Думаю так получше должно съиграть, верну свои мелко минус. https://t.co/r9aOQXhWdJ
Фьючь на крипте это когда разгоняешь свой депо. Допустим плечо х10 - это значит когда +1% к цене актива х10 получается +10%, так же и в обратную сторону. Если хочешь быстро потерять или заработать - для этого юзаю фьючи.
Крайне опасная штука и честно го… https://t.co/4xONC6vJvc
Ну что ставку оставили прежнюю 5.5%. Рынок воспринял позитивно. Еще и говорят что будет видимо снижать к 3 кварталу 2024. Биржа зелёная, золото и нефть скаканули. $DXY то есть доллар упал. Доминация битка выросла. Пара эфир/биток внизу. Из чего делаю выв… https://t.co/iyxPqH1QkX
На утреннем подъеме слил все что выше +60% было, это $ARB $BIGTIME $OP $ORDI - риск дело хорошее, но мне хватит.
Плюс во все из них дозаливал и общая сумма норм была. Из оставшихся только два тикета с аналогичными суммами, а те кто в минус вышли там мело… https://t.co/pSCITLjJRe
Эти ребята тоже радуют, за 8:45 накапало где то.
Лучше всех $JTO скаканул. $BCH говнюк жирный даже прыгать не захотел;-) Надо было лучше $AVAX зацепить. Ну да ладно не гоже на зелень жаловаться, пусть и меньше 10%, а все равно душу греет. https://t.co/tHbSI9DrFC
Что Шортить если так? Конечно альты, на них больше соберешь если биток прольется. Солана, матик, фтм, юни - вообщем все такое, что не сильно перформит сегодня. Но еще размышляю и было бы хорошо зеленую свечку перед этим на битке увидеть - тогда точно под… https://t.co/5oC3cdBxQa
Сегодня на биржи залили 11090.13 битка - до фига если честно. Значит завтра послезавтра покатится вниз?
Видимо стоит ожидать длинную соплю вниз;-) Шорт надо бы поискать завтра думаю. https://t.co/iKgNyeQF7S
На какие графики смотрю, когда анлизирую крипту?
Давай поговорим на что еще смотреть кроме графика интерисующей монеты. Просто забивай в TradingView эти значения:
DXY - американский доллар индекс, когда он идет вверх обычно активы как золото, биткоин и… https://t.co/CC588SEhhE
Когда растет биткойн обычно растут монетки привязан��ые к нему, например $RIF $BCH $TIA
Теперь ожидаем эфирчик должен пойти, а то он отстает от битка, ну и все что к эфиру привязано. Ну посмотрим. https://t.co/6N14r0Of86
US Space Force Major urges Defense Department to adopt Bitcoin as an 'offset strategy' Lowery suggested that Bitcoin and its underlying PoW technology could serve as contemporary tools in an offset strategy, potentially redefining the landscape of cyber warfare and defense.7 hours ago
$BTC косался $40К!
$METIS как вырос из-за ожидающегося airdrop на zk
$BIGTIME AI play так же впечатлительный рост
И много что еще отрасли очень хорошо. $SOL > $60, $FTT > $5
$DOGE, $OCEAN etc.
Вообщем, ребята крипта ожила за последние два месяца нер… https://t.co/UGZ6NVFZe7
Локально из всех больших монет только $BNB стоит из-за $4 млрд. наложенных штрафов. Мне представляется надо набрать в спот. Пусть полежат. https://t.co/op6iFH3CxK
Давайте вместе с интересом следить, как развивается эта история. Поднимаем бокал за динамичный и постоянно развивающийся мир криптовалют! 🥂🚀🌕
$BTC to the Moon 😉
Давайте обсудим шум вокруг Биткоиновых Биржевых Торговых Фон��ов (ETF). В ожидании решения по 8 Биткоиновым ETF, ожидаемым с января по март 2024 года, рассмотрим, как это может повлиять на цену биткоина, весь рынок криптовалют, уверенность инвесторов и общую финансовую ситуацию.
Потенциальное одобрение BTC ETF SPOT является переломным моментом в истории криптовалют. Это подтверждение растущего влияния Бит��оина. Для осторожных инвесторов - новый путь в мир криптовалют, а для финансового мира - шаг к принятию эры цифровой валюты.