217 karma · joined November 9, 2021
i found out that as i learnt more domain wise, i was (obviously) able to steer better. doing a re-write can also remove lots of slop and context rot (and subsequently make it easier for both human and LLM to make solution more numerically stable, less reward hackish)
yes, it gives labs edge and leads to self-recursive improvement loops.
also i was myself able to finish 7th in a later competition with 2-3 other approaches which are variants of the method discussed in this blog.
in general, having a harness as thin as possible with some problem specific instructions while controlling for context rot is the key.
point i am trying to make is there are a lot of optimisation surface areas possible.
welcome! check out my featured section
For context, I was using Claude Code on a Ruby + Typescript large open source codebase. 50M+ tokens. They had specs and e2e tests so yeah I did have feedback when I was done with a feature - I could run specs and Claude Code could form a loop. I would usually advise it to fix specs one by one. --fail-fast to find errors fast.
Prior to Claude Code, I have been using Cursor for an year or so.
Sonnet is particularly good at NextJS and Typescript stuff. I also ran this on a medium sized Python codebase and some ML related work too (ranging from langchain to Pytorch lol)
I don't do a lot of prompting, just enough to describe my problem clearly. I try my best to identify the relevant context or direct the model to find it fast.
I made new claude.md files.
Two part blog series + 1 blog on my personal blog to attempt speedup
In short, you can do the following
text/image to equations in markdown+latex
live rendering of markdown+latex
drag and drop screenshot
just a simple chat mode
customizable models and default prompts
I draw connection between the above meme and Karma Yoga as proposed in the Holy Bhagavad Gita. Please give a read.
codeQA is a question-answering system for codebases that uses semantic code search with embeddings. It indexes codebases by chunking them into methods and classes using abstract syntax trees (AST), generating LLM-based comments for the chunks, and embedding them. The system then uses techniques like hypothetical document embeddings (HyDE), BM25 keyword search, and cross-encoder based reranking to improve the retrieval of relevant code snippets in response to natural language queries about the codebase.
I use tree-sitter (Part 1) for extracting the abstract syntax tree and building the codebase index. Elaborate discussion on cross-encoder vs bi-encoder
I use LanceDB for vectorDB, cohere rank v3 for re-ranking and various LLMs to generate LLM comments, summary and chat.