Anand Setlur (@deeq11) profile picture
Joined September 2010
Photo by Anand Setlur (@deeq11)
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!
10
54
4
341
33,489
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โ€ฆ
4
18
1,001
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โ€ฆ ]
64
536
66
2,797
506,453
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
2
9
620
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โ€ฆ
1
119
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
3
11
1,132
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โ€ฆ
8
46
1
242
46,858
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)."
12
62
11
370
82,242
Anand Setlur retweeted
New Video: Live Hacking Q&A youtu.be/6qUTA7UfFjU
1
2
750
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
171
1,146
240
6,549
1,066,053
๐—ช๐—ต๐—ฎ๐˜ ๐—˜๐˜ƒ๐—ฒ๐—ฟ๐˜† ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ๐—บ๐—ฒ๐—ฟ ๐—ฆ๐—ต๐—ผ๐˜‚๐—น๐—ฑ ๐—ž๐—ป๐—ผ๐˜„ ๐—”๐—ฏ๐—ผ๐˜‚๐˜ ๐— ๐—ฒ๐—บ๐—ผ๐—ฟ๐˜† 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
8
420
11
1,873
275,545
Anand Setlur retweeted
GStreamer Conference 2023 Schedule, Talk Abstracts and Speakers Biographies are now available! gstreamer.freedesktop.org/coโ€ฆ
6
1
16
1,869
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
17
125
9
676
75,592