frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Could ionospheric disturbances influence earthquakes?

https://www.kyoto-u.ac.jp/en/research-news/2026-02-06-0
1•geox•49s ago•0 comments

SpaceX's next astronaut launch for NASA is officially on for Feb. 11 as FAA clea

https://www.space.com/space-exploration/launches-spacecraft/spacexs-next-astronaut-launch-for-nas...
1•bookmtn•2m ago•0 comments

Show HN: One-click AI employee with its own cloud desktop

https://cloudbot-ai.com
1•fainir•4m ago•0 comments

Show HN: Poddley – Search podcasts by who's speaking

https://poddley.com
1•onesandofgrain•5m ago•0 comments

Same Surface, Different Weight

https://www.robpanico.com/articles/display/?entry_short=same-surface-different-weight
1•retrocog•7m ago•0 comments

The Rise of Spec Driven Development

https://www.dbreunig.com/2026/02/06/the-rise-of-spec-driven-development.html
2•Brajeshwar•11m ago•0 comments

The first good Raspberry Pi Laptop

https://www.jeffgeerling.com/blog/2026/the-first-good-raspberry-pi-laptop/
3•Brajeshwar•11m ago•0 comments

Seas to Rise Around the World – But Not in Greenland

https://e360.yale.edu/digest/greenland-sea-levels-fall
1•Brajeshwar•12m ago•0 comments

Will Future Generations Think We're Gross?

https://chillphysicsenjoyer.substack.com/p/will-future-generations-think-were
1•crescit_eundo•15m ago•0 comments

State Department will delete Xitter posts from before Trump returned to office

https://www.npr.org/2026/02/07/nx-s1-5704785/state-department-trump-posts-x
2•righthand•18m ago•1 comments

Show HN: Verifiable server roundtrip demo for a decision interruption system

https://github.com/veeduzyl-hue/decision-assistant-roundtrip-demo
1•veeduzyl•19m ago•0 comments

Impl Rust – Avro IDL Tool in Rust via Antlr

https://www.youtube.com/watch?v=vmKvw73V394
1•todsacerdoti•19m ago•0 comments

Stories from 25 Years of Software Development

https://susam.net/twenty-five-years-of-computing.html
2•vinhnx•20m ago•0 comments

minikeyvalue

https://github.com/commaai/minikeyvalue/tree/prod
3•tosh•24m ago•0 comments

Neomacs: GPU-accelerated Emacs with inline video, WebKit, and terminal via wgpu

https://github.com/eval-exec/neomacs
1•evalexec•29m ago•0 comments

Show HN: Moli P2P – An ephemeral, serverless image gallery (Rust and WebRTC)

https://moli-green.is/
2•ShinyaKoyano•33m ago•1 comments

How I grow my X presence?

https://www.reddit.com/r/GrowthHacking/s/UEc8pAl61b
2•m00dy•35m ago•0 comments

What's the cost of the most expensive Super Bowl ad slot?

https://ballparkguess.com/?id=5b98b1d3-5887-47b9-8a92-43be2ced674b
1•bkls•36m ago•0 comments

What if you just did a startup instead?

https://alexaraki.substack.com/p/what-if-you-just-did-a-startup
5•okaywriting•42m ago•0 comments

Hacking up your own shell completion (2020)

https://www.feltrac.co/environment/2020/01/18/build-your-own-shell-completion.html
2•todsacerdoti•45m ago•0 comments

Show HN: Gorse 0.5 – Open-source recommender system with visual workflow editor

https://github.com/gorse-io/gorse
1•zhenghaoz•46m ago•0 comments

GLM-OCR: Accurate × Fast × Comprehensive

https://github.com/zai-org/GLM-OCR
1•ms7892•46m ago•0 comments

Local Agent Bench: Test 11 small LLMs on tool-calling judgment, on CPU, no GPU

https://github.com/MikeVeerman/tool-calling-benchmark
1•MikeVeerman•47m ago•0 comments

Show HN: AboutMyProject – A public log for developer proof-of-work

https://aboutmyproject.com/
1•Raiplus•48m ago•0 comments

Expertise, AI and Work of Future [video]

https://www.youtube.com/watch?v=wsxWl9iT1XU
1•indiantinker•48m ago•0 comments

So Long to Cheap Books You Could Fit in Your Pocket

https://www.nytimes.com/2026/02/06/books/mass-market-paperback-books.html
4•pseudolus•48m ago•2 comments

PID Controller

https://en.wikipedia.org/wiki/Proportional%E2%80%93integral%E2%80%93derivative_controller
1•tosh•53m ago•0 comments

SpaceX Rocket Generates 100GW of Power, or 20% of US Electricity

https://twitter.com/AlecStapp/status/2019932764515234159
2•bkls•53m ago•0 comments

Kubernetes MCP Server

https://github.com/yindia/rootcause
1•yindia•54m ago•0 comments

I Built a Movie Recommendation Agent to Solve Movie Nights with My Wife

https://rokn.io/posts/building-movie-recommendation-agent
4•roknovosel•54m ago•0 comments
Open in hackernews

Show HN: I made it fast and easy to launch your own RAG-powered AI chatbots

https://www.chatrag.ai
2•carlos_marcial•2mo ago

Comments

carlos_marcial•2mo ago
I built the tech stack behind ChatRAG to handle the increasing number of clients I started getting about a year ago who needed Retrieval Augmented Generation (RAG) powered chatbots.

After a lot of trial and error, I settled on this tech stack for ChatRAG:

Frontend

- Next.js 16 (App Router) Latest React framework with server components and streaming

- React 19 + React Compiler: Automatic memoization, no more useMemo/useCallback hell

- Zustand: Lightweight state management (3kb vs Redux bloat)

- Tailwind CSS + Framer Motion: Styling + buttery animations

- Embed a chat widget version of your RAG chatbot on any web page, apart from creating a ChatGPT or Claude looking web UI

AI / LLM Layer

- Vercel AI SDK 5 – Unified streaming interface for all providers

- OpenRouter – Single API for Claude, GPT-4, DeepSeek, Gemini, etc.

- MCP (Model Context Protocol) – Tool use and function calling across models

RAG Pipeline

- Text chunking → documents split for optimal retrieval

- OpenAI embeddings (1536 dim vectors) – Semantic search representation

- pgvector with HNSW indexes – Fast approximate nearest neighbor search directly in Postgres

Database & Auth

- Supabase (PostgreSQL) – Database, auth, realtime, storage in one

- GitHub & Google OAuth via Supabase – Third party sign in providers managed by Supabase

- Row Level Security – Multi-tenant data isolation at the DB level

Multi-Modal Generation

- Use Fal.ai or Replicate.ai API keys for generating image, video and 3D assets inside of your RAG chatbot

Integrations

- WhatsApp via Baileys – Chat with your RAG from WhatsApp

- Stripe / Polar – Payments and subscriptions

Infra

- Fly.io / Koyeb – Edge deployment for WhatsApp workers

- Vercel – Frontend hosting with edge functions

My special sauce: pgvector HNSW indexes (m=64, ef_construction=200) give you sub-100ms semantic search without leaving Postgres. No Pinecone/Weaviate vendor lock-in.

Single-tenant vs Multi-tenant RAG setups: Why not both?

ChatRAG supports both deployment modes depending on your use case:

Single-tenant

- One knowledge base → many users

- Ideal for celebrity/expert AI clones or brand-specific agents

- e.g., "Tony Robbins AI chatbot" or "Deepak Chopra AI"

- All users interact with the same dataset and the same personality layer

Multi-tenant

- Users have workspace/project isolation — each with its own knowledge base, project-based system prompt and settings

- Perfect for SaaS products or platform builders that want to offer AI chatbots to their customers

- Every customer gets private data and their own RAG

My long term vision is to keep evolving ChatRAG so I can eventually release a fully open-source version for everyone to build with.

cluckindan•2mo ago
How does it handle context curation in long conversations? Does it detect user intent for each message to see if it can act purely on existing context, or if it needs to do another retrieval and/or purge/summarize previous discussion and context?
carlos_marcial•2mo ago
Great questions! Here's how ChatRAG handles context curation:

1. Intent Detection Per Message

Every message is classified to decide the retrieval strategy:

  - conversational (greetings, small talk) → skip RAG entirely
  - document_search (explicit knowledge queries) → always retrieve
  - complex/exploratory → adaptive retrieval
  - tool_required → route to MCP tools instead
This prevents unnecessary retrieval on follow-ups like "thanks" or "can you explain that differently?"

2. Adaptive Retrieval

When retrieval is needed, the system adjusts based on query characteristics:

  - Similarity thresholds: 0.45 for general queries → 0.75 for exact data requests
  - Result limits: 15 for specific queries → 30 for broad exploration
  - Strategy: semantic-only vs. hybrid vs. temporal-boosted

  "What was Q3 2024 revenue?" triggers exact_match mode at 0.75 threshold, while "Tell me about the company" uses standard semantic search at 0.45.
3. Conversation History

Full conversation history is passed to the model without truncation—modern LLMs have 100K-200K token windows, and RAG context is freshly curated each turn rather than accumulated.

4. Not Implemented (Yet)

  - Conversation summarization/compression
  - Explicit context window management
  - "Forget previous context" mechanisms
These would matter at scale or for very long sessions. That said, ChatRAG is a fully customizable boilerplate, and the idea is for developers to keep building on top of it, as I will too.
cluckindan•2mo ago
Did you just copy-paste this answer from an LLM? It sounds exactly like a generative model, and there are obvious issues with the response.

For example, ”RAG context is freshly curated each turn rather than accumulated” is nonsensical: it implies that context is curated instead of replaced, but also that the previous context is forgotten and replaced, and neither means that full conversation history (including context) is passed without truncation.

Also, no mention of tool-based retrieval. I have a hunch this is not a real product, just AI slop. Prove me wrong.

carlos_marcial•2mo ago
Yes, of course I used an LLM for the response, but not just any LLM. I used an instance of ChatRAG that has all the ChatRAG documentation built into it. I’m a solo developer trying to build software, do the marketing, handle customer support, and also be a dad and a husband. Of course I’m going to use my own product to help me out. This is precisely why I know ChatRAG is good, I use it myself daily.

That said, let me clarify the points you raised. On "freshly curated each turn rather than accumulated": this is actually the correct behavior, though I can see how the phrasing was confusing. The key is that conversation history and RAG context are two different things. The full conversation history... all previous user and assistant message... is always passed to the model without truncation. But the retrieved document chunkz are a separate layer. Those get requeried based on the current message and injected into the system prompt fresh each turn. Previous RAG results dont accumulate, they are replaced with whatever is most relevant to the current query.

Why this design? Say you ask about 'Q3 revenue' and then follow up with 'What about employe benefits?' If the system accumulated chunks, you'd have Q3 revenue data polluting the context when you're now asking about something completely different. Fresh retrieval ensures the context stays relevant to what you're actually asking about right now.

On tool-based retrieval: the system does have this through MCP integration. Query classification detects when tools are needed (Gmail, Calendar, Drive, Zapier, etc.) and routes accordingly. The model receives both the RAG context and access to tools, so it can use document knowledge and execute external actions within the same response when needed

Let me know if you have any other questions. I’ll be more than happy to answer, with the help of my ChatRAG instance, any other doubts you may have !