we had a significant security incident during evaluation of our models. we are sharing what we have learned so far. thanks to @huggingface for the partnership on this.
https://t.co/2o2VfR6PIa
I also feel the same about llm.I have tried giving mock interviews using this and the result was actually pretty great and was able to secure an internship 😃.
One pattern I find useful for working with LLMs is a nice long ramble session. Sometimes the LLM needs more bits to understand what you're trying to achieve, but you're too lazy to type them. In these cases I like to lean back, switch to /voice and just ramble for like 10 minutes, total mess, anything goes, full stream of consciousness. Sometimes I declare it up top, something like "switching to speech recognition sorry for any typos...". Sometimes I turn it into a small interview of a few turns. But I find that the LLMs are somehow very good at reconstructing long incoherent rambles and often their echo of your own tangle of thoughts comes out quite a bit cleaner than what you started with. The result is that you improve the mind meld and have to correct things less from that point on.
🚀 Built an AI-powered Resume Ranker! It parses resumes & JDs into structured data using LLMs, then ranks candidates using a hybrid of BM25 (keyword relevance) + Sentence Transformers (semantic similarity).
#AI#LLM#NLP#BM25#SentenceTransformers#Python
Solved a 24% acceptance LeetCode problem in one go today. Needed careful observation, math, and handling edge cases (including modular arithmetic). Feels good when you beat so many people.
#BuildinPublic#llm#ai#LeetCode#coding
Zero-Shot: Ideal for general, well-understood tasks where the model's internal training data is sufficient to understand.
Few-Shot: Necessary when the task requires a highly specific output structure or when dealing with edge cases that are difficult to explain in words.
#llm#ai
Some problems in today's LLM memory world ->
1) Unimodal Memory to Multimodal Memory
2) Static Memory to Stream Memory
3) Specific Memory to Comprehensive Memory
4) Exclusive Memory to Shared Memory
5) Individual Privacy to Collective Privacy
#llm#ai#llmmemory#buildinpublic
Just learned how LLM memory mirrors human memory. Memory isn't just the context window—it's organized by Object (Personal/System), Form (Parametric/Non-parametric), and Time (Short/Long-term), forming an elegant 3D × 8 memory framework. 🧠🚀
#AI#LLM
LLMs were not what I thought.
2_Stages:
Pre-training: GPU clusters ingest massive internet data for weeks to create a Base Model.
Fine-tuning: That base model is refined with high-quality labeled Q&As to drop loss and boost accuracy.
#BuildInPublic
To find a node's Kth ancestor, don't jump 1 by 1
🐌. Use Binary Lifting
🚀Precompute jumps in powers of 2.
Need the 13th ancestor?
Jump 8, then 4, then 1.
O(N) drops to O(log N).
up[i][j] = up[up[i][j-1]][j-1]
8 RAG architectures for AI Engineers:
(explained with usage)
1) Naive RAG
- Retrieves documents purely based on vector similarity between the query embedding and stored embeddings.
- Works best for simple, fact-based queries where direct semantic matching suffices.
2) Multimodal RAG
- Handles multiple data types (text, images, audio, etc.) by embedding and retrieving across modalities.
- Ideal for cross-modal retrieval tasks like answering a text query with both text and image context.
3) HyDE (Hypothetical Document Embeddings)
- Queries are not semantically similar to documents.
- This technique generates a hypothetical answer document from the query before retrieval.
- Uses this generated document’s embedding to find more relevant real documents.
4) Corrective RAG
- Validates retrieved results by comparing them against trusted sources (e.g., web search).
- Ensures up-to-date and accurate information, filtering or correcting retrieved content before passing to the LLM.
5) Graph RAG
- Converts retrieved content into a knowledge graph to capture relationships and entities.
- Enhances reasoning by providing structured context alongside raw text to the LLM.
6) Hybrid RAG
- Combines dense vector retrieval with graph-based retrieval in a single pipeline.
- Useful when the task requires both unstructured text and structured relational data for richer answers.
7) Adaptive RAG
- Dynamically decides if a query requires a simple direct retrieval or a multi-step reasoning chain.
- Breaks complex queries into smaller sub-queries for better coverage and accuracy.
8) Agentic RAG
- Uses AI agents with planning, reasoning (ReAct, CoT), and memory to orchestrate retrieval from multiple sources.
- Best suited for complex workflows that require tool use, external APIs, or combining multiple RAG techniques.
Most architectures here involve some form of retrieval-time decision. But they all run on top of whatever was already indexed.
If that indexing step outputs messy chunks, every architecture inherits them. Improving it is a separate problem from the 8 above.
My co-founder wrote about a better unit for the indexing step. The technique:
- cuts corpus size by 40x.
- reduces tokens per query by 3x.
- improves vector search relevance by 2.3x.
And it doesn't alter the retrieval algorithm, the reranker, or the embedding model.
Read it below.