HN user

zora_goron

607 karma

Resident physician with computer science background; working in clinical AI/NLP.

https://samrawal.com

Posts42
Comments60
View on HN
twitter.com 3mo ago

ChatGPT Available in CarPlay

zora_goron
3pts0
museummusic.samrawal.com 4mo ago

Show HN: Museum Music

zora_goron
2pts0
twitter.com 7mo ago

Physical Intelligence: scale brings alignment between human and robot data

zora_goron
1pts0
developer.chrome.com 9mo ago

Chrome DevTools MCP

zora_goron
1pts0
developer.apple.com 10mo ago

Claude Sonnet will ship in Xcode

zora_goron
489pts400
samrawal.substack.com 11mo ago

Augmenting clinical reasoning, without replacing it

zora_goron
2pts0
twitter.com 1y ago

Claude Code Is All You Need

zora_goron
4pts0
twitter.com 1y ago

You can now connect GitHub repos to ChatGPT Deep Research

zora_goron
2pts0
twitter.com 1y ago

Deep research (ChatGPT) is now rolling out more widely

zora_goron
2pts0
maharshi.bearblog.dev 1y ago

Contemplative LLMs

zora_goron
26pts10
samrawal.substack.com 1y ago

The Human → AI Reasoning Shunt

zora_goron
2pts0
borretti.me 1y ago

How I Use Claude

zora_goron
28pts12
samtxt.samrawal.com 1y ago

Show HN: Semantic Macros Text Editor

zora_goron
69pts19
www.theverge.com 1y ago

Meta has a major opportunity to win the AI hardware race

zora_goron
3pts1
twitter.com 1y ago

Noam Brown: o1 is a "model", not a "system"

zora_goron
2pts1
museummusic.samrawal.com 1y ago

Show HN: Museum Music – generate period-appropriate playlists from artwork

zora_goron
5pts1
twitter.com 1y ago

Jeff Dean can make "reasonable approximations for complex problems quickly"

zora_goron
4pts0
github.com 2y ago

Show HN: Chrome extension for webpage summarization locally using Phi-3

zora_goron
2pts0
news.ycombinator.com 2y ago

Ask HN: How hackable are the Meta smart glasses?

zora_goron
27pts21
twitter.com 2y ago

"I moved Summarize.tech off of GPT-3.5 and onto Mistral-7B"

zora_goron
2pts0
twitter.com 2y ago

ChatGPT has a different system prompt for iOS

zora_goron
2pts0
github.com 2y ago

Show HN: A simple Python abstraction for Llama2 Chat

zora_goron
2pts0
github.com 3y ago

Show HN: Access Local Files from ChatGPT

zora_goron
1pts0
focustxt.github.io 3y ago

Show HN: focus.txt – A Minimalist Daily Planner

zora_goron
27pts9
github.com 3y ago

LangChain Prompts

zora_goron
2pts0
twitter.com 3y ago

Simple Framework for General Named Entity Recognition Using LLaMA Locally

zora_goron
9pts0
samrawal.substack.com 3y ago

Large Language Models for Clinical Applications

zora_goron
2pts0
www.theverge.com 3y ago

Google’s Chrome browser now squeezes more battery life out of MacBooks

zora_goron
3pts0
news.ycombinator.com 3y ago

Ask HN: Workflow for Prompt Engineering

zora_goron
1pts0
www.forbes.com 3y ago

Back at Google Again, Cofounder Sergey Brin Just Filed His First Code Request

zora_goron
31pts16

This difference between medical board examinations and real world practice is something that mirrors my real-world experience too, having finished med school and started residency a year ago.

I’ve heard others say before that real clinical education starts after medical school and once residency starts.

I wrote about some similar observations in the clinical domain -- I call it the "human -> AI reasoning shunt" [0]. Explicitly requesting an AI tool to perform reasoning is one thing, but a concern I have is that, with the increasing prevalence of these AI tools, even tasks that theoretically are not reasoning-based (ie helping write clinical notes or answer simple questions) can surreptitiously offload some degree of reasoning away from humans by allowing these systems to determine what bits of information are important or not.

[0] https://samrawal.substack.com/p/the-human-ai-reasoning-shunt

This doesn’t necessarily apply to this particular offering, but having working in clinical AI previously from a CS POV and currently from as a resident physician, something I’m a little wary of is the “shunting” of reasoning away from physicians to these tools (implicitly). One can argue that it’s not always a bad thing, but I think the danger can lie in this happening surreptitiously by these tools deciding what’s important and what’s not.

I wrote a little bit more of my thoughts here, in case it’s of interest to anyone: [0]

On that same vein, I recently made a tool I wrote for myself public [1] - it’s a “copilot” for writing medical notes that’s heavily focused on letting the clinician do the clinical reasoning, with the tool exclusively augmenting the flow rather than attempting to replace even a little bit of it.

[0] https://samrawal.substack.com/p/the-human-ai-reasoning-shunt

[1] https://x.com/samarthrawal/status/1894779710258733330

Does anyone know how this “user decides how much compute” is implemented architecturally? I assume it’s the same underlying model, so what factor pushes the model to <think> for longer or shorter? Just a prompt-time modification or something else?

OpenAI O3-Mini 1 year ago

Does anyone know, how "reasoning effort" is implemented technically - does this involve differences in the pre-training, RL, or prompting phases (or all)?

Discovery Coding 1 year ago

“A programming language is for thinking of programs, not for expressing programs you’ve already thought of. It should be a pencil, not a pen.” - from PG’s “Hackers & Painters”

Thanks for trying it out! Honestly, no current idea of business model - this was just something I thought would be helpful in my daily workflow so I built it out.

The buttons are stored to localstorage, as is the editor text - everything stays locally (besides what is sent to the LLM). I'm planning on a simple import/export mechanism for transferring buttons across different browsers/computers!

I'm still trying this out, but I've been using Superlist [0] (no affiliation) for different projects. For me, having a single app that is both a Markdown document <-> todo app has been helpful. I'm able to jot down notes in greater structure and depth than in another todo app and interweave todo items throughout, which helps contextualize tasks a lot better (especially when working across different projects).

Reminds me of org-mode in Emacs - overall, I'm really liking the cross-platform sync and Markdown interface out-of-the-box.

[0] https://www.superlist.com/

The article mentions,

> “you've tried response_format: "json" and function calling and been disappointed by the results”

Can anyone share any examples of disappointments or issues with these techniques? Overall I’ve been pretty happy with JSON mode via OpenAI API so I’m curious to hear about any drawbacks with it.

Ollama v0.1.45 2 years ago

I see a couple comments comparing llama.cpp and Ollama, and I think both have utility for different purposes. Having used both llama.cpp (which is fantastic) and Ollama, a couple things that I find valuable about Ollama out-of-the-box --

- Automatically loading/unloading models from memory - just running the Ollama server is a relatively small footprint; every time a particular model is called it is loaded into memory, and then unloaded after 5 mins of no further usage. It makes it very convenient to spin up different models for different use-cases without having to worry about memory management or manually shutting down those tools when not in use.

- OpenAI API compatibility - I run Ollama on a headless machine that has better hardware and connect via SSH port forwarding from my laptop, and with a 1 line change I can reroute any scripts on my laptop from GPT to Llama-3 (or anything else).

Overall, at least for tinkering with multiple local models and building small, personal tools, I've found the utility:maintenance ratio of Ollama to be very positive -- thanks to the team for building something so valuable! :)

I commented on this on HN a couple months ago, but I had a similar conclusion regarding the value of memorization when I joined med school after studying computer science in undergrad and grad.

It took me a while to buy in to high-volume memorization as a learning technique (especially coming from CS, where memorizing facts is not a huge emphasis). After a while though, I started recognizing how the quick recall encouraged by the system enhanced my understanding of concepts vs replacing it (I wrote about this a couple years ago [0]).

[0] https://samrawal.substack.com/p/on-the-relationship-between-...

I used Anki quite a bit in med school, where it’s extremely popular. Admittedly, it took me a couple years to fully buy in to it as a tool for cramming hundreds of facts, especially coming from an academic background (computer science) where memorizing facts at a high rate was not a huge emphasis at all.

After using it for a while though, I began to value how the quick recall encouraged by the system actually seemed to /enhance/ my deeper understanding of concepts, rather than replace it (I wrote a short post about this a couple years ago [0]).

[0] https://samrawal.substack.com/p/on-the-relationship-between-...

LLaMA-Pro-8B 3 years ago

Context from the model page:

“Developed by Tencent's ARC Lab, LLaMA-Pro is an 8.3 billion parameter model. It's an expansion of LLaMA2-7B, further trained on code and math corpora totaling 80 billion tokens.”

I just finished up building a working version of a personal-use tool a few days ago which I'm planning on releasing publicly soon in case it's useful to anyone else (however, the primary motivation was my own use-case) -

I often hear something in a podcast that I want to write down, but don't want to peck out notes on my phone, so I built a GPT Vision-powered tool to help.

Workflow:

- hear something interesting → just screenshot lock screen

- use screenshot to auto-identify podcast, episode, and timestamp

- summarized bullet points at that timestamp via GPT, logged to a virtual notebook

[0] some screenshots - https://twitter.com/samarthrawal/status/1735133820008141170

[1] demo vid - https://twitter.com/samarthrawal/status/1735852196493971593

I wrote a simple implementation to do this in ChatGPT via local plugin [0]. Obviously it doesn’t hit the “fully private” requirement but I imagine it would be relatively straightforward to integrate into a local LLM. The question is whether a local LLM would be as good at grabbing enough context and nuance from the project to answer meaningfully as GPT-4 is able to do with plugins.

[0] https://github.com/samrawal/chatgpt-localfiles

Llama 2 3 years ago

One thing I haven't seen in the comments so far is that Llama 2 is tuned with RLHF [0], which the original Llama work wasn't. In addition to all the other "upgrades", seems like this will make it far easier to steer the model and get practical value.

[0] Training Llama-2-chat: Llama 2 is pretrained using publicly available online data. An initial version of Llama-2-chat is then created through the use of supervised fine-tuning. Next, Llama-2-chat is iteratively refined using Reinforcement Learning from Human Feedback (RLHF), which includes rejection sampling and proximal policy optimization (PPO).

https://ai.meta.com/resources/models-and-libraries/llama/

Definitely agree about prompts -- for MedQA [0] I ended up building up a prompt around 300 words long to get a collection of results I was aiming for. I'm still not sure about the best way to go about building a "stable" lengthy prompt that can maintain a predictable output even after adding to it; my approach was mainly via trial-and-error experimentation.

[0] https://labs.cactiml.com/medqa

Ultimately, I just wanted to make something that was closer to a plaintext file than something like org-mode, but with some small additions per my own preferences (colors, variables, auto-bulleting, etc).

The side project ended up being a single-file HTML file I could throw into a browser tab, so I decided to put it up and share on GitHub :)

GalenAI looks very interesting -- definitely will be taking a closer look! :)

> Now - throw a punch of clinical guidelines in a vector database and give it context

I built MedQA (https://labs.cactiml.com/medqa) as a way to explore how GPT could be used through providing clinical guidelines as context + pretty extensive prompt engineering. There are definitely limitations and the accuracy/constraining "hallucinations" has to meet a very high bar, but I've found it interesting-to-helpful several times while on rounds at the hospital as a med student.

Some functionality made possible through GPT that I am excited to explore further:

- Interacting with the guidelines in a question-and-followup format: https://twitter.com/samarthrawal/status/1620547117717786624

- Answering with different levels of complexity depending on user: https://twitter.com/samarthrawal/status/1636137740390498306

- Proactively detecting if the answer lends itself well to a table format, and optionally generating a table to address user query: https://twitter.com/samarthrawal/status/1631759290414276615