Anand Setlur retweeted
Two new gifts from @Cloudflare for the MCP community:
๐ use-mcp: a React hook that makes it easy to connect any web app to remote MCP servers in just 3 lines of code
๐ AI Playground, open-sourced: a chat interface with built-in LLMs + MCP support that you can deploy yourself!
Anand Setlur retweeted
I couldn't resist playing with a new WebRTC OpenAI API and share some notes in case somebody is curious about how things work under the hood:
medium.com/@ggarciabernardo/โฆ
Great work!
In honor of the 12 days of OpenAI, here's a realtime voice assistant in 12 lines of JavaScript! This code uses our new WebRTC support for the Realtime API - just pass in a local stream from getUserMedia(), an <audio> element for output, and an API token.
platform.openai.com/docs/guiโฆ
Anand Setlur retweeted
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): deeplearning.ai/the-batch/isโฆ ]
Anand Setlur retweeted
New post: end-to-end-encryption (E2EE) in #WebRTC - current adoption analysis, ongoing standards discussions, a possible Chrome experiment, and many tips by @hcornflower
buff.ly/3wJZ63F
Anand Setlur retweeted
At the link below, discover another intriguing topic we'll dive into at #JanusCon. ๐๐ Dive into Lorenzo Miniero's article, and if you have questions or ideas, join us on April 29th and 30th in Naples to discuss! Let the conversation begin! ๐ฌ๐ฅ #lyra
meetecho.com/blog/playing-wiโฆ
Anand Setlur retweeted
Some interesting open-source TTS projects that I've looked into. Any that I missed?
- Coqui: github.com/coqui-ai/TTS
- TortoiseTTS: github.com/neonbjb/tortoise-โฆ
- Piper: github.com/rhasspy/piper
- Bark: github.com/suno-ai/bark
Anand Setlur retweeted
Multimodal support in llama-cpp-python powered by LLaVA 1.5
API is compatible with the new gpt-4-vision-preview model and supports JSON mode responses
Github:
github.com/abetlen/llama-cppโฆ
Docs:
llama-cpp-python.readthedocsโฆ
Anand Setlur retweeted
Most intro paragraphs for AI/ML papers just re-state the same, basic info about AI. But, the recent "GPT-4 Doesnโt Know Itโs Wrong" paper has one of the best intros I've ever read...
"Large Language Models (LLMs), essentially n-gram models on steroids which have been trained on web-scale language corpus, have caught the imagination of the AI research community with linguistic behaviors that no one expected text completion systems to possess."
Describing LLMs as "n-gram models on steroids" has to be one of the best ways to start a paper that I've ever seen! ๐ Plus, this paper is super interesting!
Paper Topic: This paper studies the ability of LLMs (GPT-4 in particular) to solve graph coloring problems.
Major Findings:
- GPT-4 cannot solve graph coloring problems.
- GPT-4 cannot verify correct solutions to graph coloring problems.
- Because the model cannot verify solutions to a graph coloring problem, it also cannot iteratively self-critique and revise its solution to yield a better answer.
- Even when verification is handled through an external oracle/module, GPT-4 cannot iteratively work towards a correct, revised solution.
- GPT-4's ability to solve graph coloring problems equates to generating multiple answers and checking if one of them is correct. The model cannot use information about why its solution is incorrect to generate a better, revised answer.
Takeaway: Using LLMs to critique/evaluate their own responses (or those of other language models), is a super common practice for evaluating LLMs or iteratively solving complex problems (e.g, Graph of Thoughts prompting). However, this paper finds that the ability of LLMs to self-critique their solutions to a problem may be limited (at least in the case of graph coloring problems).
Summary of contributions: "The study seems to indicate that (i) LLMs are bad at solving graph coloring instances (ii) they are no better at verifying a solutionโand thus are not effective in iterative modes with LLMs critiquing LLM-generated solutions (iii) the correctness and content of the criticismsโwhether by LLMs or external solversโseems largely irrelevant to the performance of iterative prompting. We show that the observed effectiveness of LLMs in iterative settings is largely due to the correct solution being fortuitously present in the top-k completions of the prompt (and being recognized as such by an external verifier)."
Anand Setlur retweeted
New Video: Live Hacking Q&A youtu.be/6qUTA7UfFjU
Anand Setlur retweeted
Good morning, and say "Hello!" to Raspberry Pi 5! The #Pi5 is ร2โ3 faster, has PCIe support, a new RTC, and our own silicon designed inโhouse here in Cambridge The everything computer. Optimised, raspberrypi.com/5. More at raspberrypi.com/news/introduโฆ. #RaspberryPi #RaspberryPi5
Anand Setlur retweeted
๐ช๐ต๐ฎ๐ ๐๐๐ฒ๐ฟ๐ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ฒ๐ฟ ๐ฆ๐ต๐ผ๐๐น๐ฑ ๐๐ป๐ผ๐ ๐๐ฏ๐ผ๐๐ ๐ ๐ฒ๐บ๐ผ๐ฟ๐
Check out this great manuscript by Ulrich Drepper, which delves deep into computer memory systems and their implications for software developers.
It talks about:
๐น ๐๐ฃ๐จ ๐๐ฎ๐ฐ๐ต๐ฒ๐
๐น ๐ฉ๐ถ๐ฟ๐๐๐ฎ๐น ๐ ๐ฒ๐บ๐ผ๐ฟ๐
๐น ๐ ๐ฒ๐บ๐ผ๐ฟ๐ ๐๐ฐ๐ฐ๐ฒ๐๐ ๐ฃ๐ฎ๐๐๐ฒ๐ฟ๐ป๐
๐น ๐ฃ๐ฒ๐ฟ๐ณ๐ผ๐ฟ๐บ๐ฎ๐ป๐ฐ๐ฒ ๐ง๐ผ๐ผ๐น๐
๐น ๐๐ผ๐ฐ๐ธ๐
๐น๐ ๐๐น๐๐ถ-๐๐ต๐ฟ๐ฒ๐ฎ๐ฑ๐ฒ๐ฑ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ด ๐ฎ๐ป๐ฑ ๐ ๐ฒ๐บ๐ผ๐ฟ๐
๐น ๐๐ป๐ฑ ๐บ๐ผ๐ฟ๐ฒ.
Check the link in the comments.
_______
If you want to expand your knowledge and personal growth, please follow me, @milan_milanovic, and hit the ๐ on my profile to get a notification for all my new posts.ย
Grow with me ๐!
#technology #softwareengineering #programming #techworldwithmilan #developers
Anand Setlur retweeted
GStreamer Conference 2023
Schedule, Talk Abstracts and Speakers Biographies are now available!
gstreamer.freedesktop.org/coโฆ
Anand Setlur retweeted
Very happy to finally share code & models for PIPs++!
Long-term tracking, for hundreds of points, in seconds.
code: github.com/aharley/pips2
paper: arxiv.org/abs/2307.15055
project: pointodyssey.com






















