frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

An Enterprise-Level Retrieval-Augmented Generation System

https://comfyai.app/article/llm-applications/enterprise-level-rag-hands-on-practice-II
6•zljdanceholic•9mo ago

Comments

zljdanceholic•9mo ago
How can we search the wanted key information from 10,000+ pages of PDFs within 2.5 hours? For fact check, how do we implement it so that answers are backed by page-level references, minimizing hallucinations?

RAG-Challenge-2 is a great open-source project by Ilya Rice that ranked 1st at the Enterprise RAG Challenge, which has 4500+ lines of code for implementing a high-performing RAG system. It might seem overwhelming to newcomers who are just beginning to learn this technology. Therefore, to help you get started quickly—and to motivate myself to learn its ins and outs—I’ve created a complete tutorial on this.

We have a complete graph to explain its workflow where multiple tools are used: Docling for parsing PDFs, LangChain for chunking text, faiss for vectorization and similarity searching, and chatgpt for LLMs.

Besides, I also outline the codeflow, demonstrating the running logic involving multiple python files where starters can easily get lost. Different files are colored differently. The purpose of showing this is not letting you memorize all of these file relationships. It works better for you to check the source code yourself and use this as a reference if you find yourself lost in the code.

The original project of Ilya Rice design its RAG system for answering questions of annual reports from companies, so he only designed three types of question response format for that challenge: a name, a number, or a boolean. But to ask questions about technical stuff, we absolutely ask general questions like How does RoPE work? to know about some concepts and the like Therefore, I further modify the system logic to fit this need by customizing an AnswerWithRAGContextExplanationPrompt class and automatically matching the most related chapter and corresponding pages via searching through all faiss databases (only retrieve the top-1) The final performance is demonstrated below (not cherry-picked, only tested once).

- What's the steps to train a nanoGPT from scratch? The answer is:

Training nanoGPT from scratch involves several clearly defined steps. First, set up the environment by installing necessary libraries, using either Anaconda or Google Colab, and then download the dataset (e.g., tinyShakespeare). Next, tokenize the text into numerical representations and split the data into training and validation sets. Define the model architecture including token/positional embeddings, transformer blocks with multi-head self-attention and feed-forward networks, and layer normalization. Configure training hyperparameters and set up an optimizer (such as AdamW). Proceed with a training loop that performs forward passes, computes loss, backpropagates, and updates parameters, while periodically evaluating performance on both training and validation data. Finally, use the trained model to generate new text from a given context.

All code are provided on Colab and the tutorial is referenced here. Hope this helps!

I swear the UFO is coming any minute

https://www.experimental-history.com/p/i-swear-the-ufo-is-coming-any-minute
2•Ariarule•58s ago•0 comments

What Neptune.ai Got Right (and How to Keep It)

https://www.trainy.ai/blog/what-neptune-got-right-and-how-to-keep-it
2•roanakb•1m ago•0 comments

Show HN: Turn Claude Code or Codex into proactive, autonomous 24/7 AI agents

https://github.com/suitedaces/dorabot
2•alternateman•3m ago•0 comments

The Case for Duolingo

https://josephblumenfeld.substack.com/p/the-case-for-duolingo
1•AzariaK•4m ago•0 comments

The 24-Day Notice That Was a 7-Month Signal

https://medium.com/@platformpolicy/the-24-day-notice-that-was-actually-a-7-month-signal-55c4b3726fce
1•ppolicyco•4m ago•1 comments

Space Station returns to a full crew complement after a month

https://arstechnica.com/space/2026/02/space-station-returns-to-a-full-crew-complement-after-a-month/
1•rbanffy•4m ago•0 comments

Can Opus 4.6 Do Category Theory in Lean?

https://www.stephendiehl.com/posts/lean-opus-blog/
1•macleginn•5m ago•0 comments

Bankruptsy

https://lightward.com/bankruptsy
1•isaacbowen•6m ago•0 comments

Architecture of Consoles

https://www.copetti.org/writings/consoles/
2•lopespm•9m ago•0 comments

Updated Thoughts on AI Risk

https://www.noahpinion.blog/p/updated-thoughts-on-ai-risk
1•paulpauper•9m ago•0 comments

Show HN: ChessGrammar – API that detects tactical patterns in chess positions

1•stevejvv•9m ago•0 comments

AI Eats the World, and Most of Its Flash Storage

https://www.nextplatform.com/2026/02/17/ai-eats-the-world-and-most-of-its-flash-storage/
2•rbanffy•11m ago•0 comments

Diagnosing a PET Video Fault from One Photograph

http://blog.tynemouthsoftware.co.uk/2026/02/diagnosing-a-pet-video-fault-from-one-photo.html
1•WaluigiBSOD•12m ago•0 comments

Show HN: FolioDoc – I built a tool to stop chasing clients for documents

2•Foliodoc•14m ago•0 comments

Phishing Detection NLP Heuristic: Prototype Achieves 60% Detection Rate

https://horeszko.ca/blog/phishing-detection.html
1•horeszko•16m ago•0 comments

Lessons from building the best Deep Research and how you can build better agents

https://www.onyx.app/blog/building-the-best-deep-research
1•yuhongsun•17m ago•0 comments

Algorithm-based tool for home support funding is 'cruel' and 'inhumane'

https://www.theguardian.com/australia-news/2026/feb/17/australian-aged-care-algorithm-tool-home-s...
1•novemp•18m ago•0 comments

U.S. releases new details on alleged secret Chinese nuclear test

https://www.npr.org/2026/02/17/nx-s1-5716046/u-s-releases-new-details-on-alleged-secret-chinese-n...
1•ironyman•20m ago•0 comments

America's Future Leaders Are Learning to Become Grifters

https://www.robkhenderson.com/p/americas-future-leaders-are-learning
8•paulpauper•20m ago•0 comments

Basecamp/upright: Synthetic monitoring engine with Playwright and Prometheus

https://github.com/basecamp/upright
1•hahahacorn•21m ago•0 comments

Show HN: Cursor for Observability

https://dashboard.rocketgraph.app
2•kvaranasi_•21m ago•0 comments

The Live Music Event That Changed My Life

https://www.honest-broker.com/p/the-live-music-event-that-changed
1•paulpauper•21m ago•0 comments

Open Source and GenAI?

https://www.tbray.org/ongoing/When/202x/2026/02/16/GenAI-and-OSS-opinion
1•zdw•21m ago•0 comments

Convert Anything,Locally

https://p2r3.github.io/convert/
1•matan-h•25m ago•0 comments

State of the Agent: Do coding agents know what they don't know?

https://thinkwright.ai/agent-census/
1•oceanwaves•26m ago•0 comments

Dolphin Emulator – Rise of the Triforce

https://br.dolphin-emu.org/blog/2026/02/16/rise-of-the-triforce/?cr=br
12•lsferreira42•27m ago•2 comments

Fast sorting networks, branchless by design

https://00f.net/2026/02/17/sorting-without-leaking-secrets/
4•fanf2•29m ago•0 comments

Meta research found supervision doesn't curb teens' compulsive social media use

https://techcrunch.com/2026/02/17/metas-own-research-found-parental-supervision-doesnt-really-hel...
5•cdrnsf•30m ago•0 comments

A game about programming exposed players to remote code execution

https://outsidetheasylum.blog/screeps/
1•PaulHoule•31m ago•0 comments

Drop in unauthorized immigration slows job growth, SF Fed paper finds

https://www.reuters.com/business/drop-unauthorized-immigration-slows-job-growth-sf-fed-paper-find...
3•geox•31m ago•0 comments