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•11mo ago

Comments

zljdanceholic•11mo 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!

Show HN: Agent Context – let your AI coding tools see your reference projects

https://github.com/gmarland/Agent-Context
1•gamerdrome•22s ago•0 comments

Ask HN: Should HN have a new top category – Prompt HN?

1•jharohit•42s ago•0 comments

A hallucination engine. Typed pseudorandom data via LLM

https://pypi.org/project/grievous-mcp/
1•basyt•8m ago•1 comments

Oracle cutting thousands in latest layoff round, continues to ramp AI spending

https://www.cnbc.com/2026/03/31/oracle-layoffs-ai-spending.html
1•sparin9•8m ago•0 comments

Ask HN: What domain have you been sitting on for a while?

2•msuniverse2026•9m ago•0 comments

Healthcare Price Transparency

https://marginalrevolution.com/marginalrevolution/2026/04/on-health-care-price-transparency-from-...
1•barry-cotter•13m ago•0 comments

Moleskine's AI Lord of the Rings collection can only mock

https://cjleo.com/blog/moleskine-ai-lord-of-the-rings-collection-can-only-mock/
2•lentil_soup•21m ago•0 comments

Trump turns the WHCD shooting into a pitch for the White House ballroom

https://www.theverge.com/policy/918843/trump-whcd-attack-white-house-ballroom
1•eternalreturn•22m ago•0 comments

Show HN: Building a SQL analyst agent from scratch

https://raminmousavi.dev/blog/building-a-sql-analyst-agent
2•ramin2nt2•32m ago•0 comments

Ubuntu 26.10 could drop btrfs, ZFS and LUKS support from GRUB

https://www.omgubuntu.co.uk/2026/03/ubuntu-grub-secure-boot-luks-changes
2•mariuz•34m ago•0 comments

BSI (Germany) defines when a cloud is sovereign

https://www.heise.de/en/news/BSI-defines-when-a-cloud-is-truly-sovereign-11272828.html
1•pros•35m ago•0 comments

Queen

https://medium.com/the-hitmagist/queen-2a8c2d9da9f5
2•bryanrasmussen•35m ago•0 comments

An attempt at explaining bipolar disorder and psychosis

https://osf.io/preprints/psyarxiv/w28g9_v1
2•anon1253•39m ago•0 comments

Quarkdown – Markdown with Superpowers

https://quarkdown.com/
2•amai•45m ago•0 comments

Show HN: Defeating AI by making knowledge accessible to Humans

https://github.com/tnelsond/peakslab
2•tnelsond4•45m ago•0 comments

China Blocks Meta's $2B Acquisition of AI Firm Manus

https://www.bloomberg.com/news/articles/2026-04-27/china-blocks-meta-s-2-billion-acquisition-of-a...
4•limoce•45m ago•1 comments

China blocks Meta's $2B purchase of AI startup Manus

https://finance.yahoo.com/sectors/technology/articles/china-blocks-foreign-acquisition-ai-0825482...
3•jmsflknr•46m ago•0 comments

Notes on Serial Experiments Lain

https://jordanmatthiass.net/essays/serial_experiments_lain
1•lilytweed•46m ago•0 comments

Open Source Mintlify Alternative

https://doccupine.com
1•luangjokaj•46m ago•1 comments

Open CoDesign: Open-source, local-first alternative to Claude Design and v0

https://firethering.com/open-codesign-ai-design-tool-open-source/
2•steveharing1•49m ago•0 comments

Tell HN: Ebay.com Is Down

4•NKosmatos•51m ago•1 comments

Enhancing Server Availability and Security Through Failure-Oblivious Computing [pdf]

https://people.csail.mit.edu/rinard/paper/osdi04.pdf
1•pabs3•1h ago•0 comments

The "Connectivome Theory": A New Model to Understand Autism Spectrum Disorders

https://pmc.ncbi.nlm.nih.gov/articles/PMC8892379/
1•AndrewDucker•1h ago•0 comments

Recursive Acronym

https://en.wikipedia.org/wiki/Recursive_acronym
1•Quizzical4230•1h ago•0 comments

Soulful Sites

https://app.paradigmai.com/sheets/76210606-6ce4-4ccc-a005-fb1cf6984a45
1•sauravmaheshkar•1h ago•0 comments

LLMs are not a higher level of abstraction

https://www.lelanthran.com/chap15/content.html
2•lelanthran•1h ago•3 comments

Ask HN: RedHat for Personal Use

3•bozdemir•1h ago•3 comments

The Truth About China's Green Energy Industry [video]

https://www.youtube.com/watch?v=Ff0AYRWrnGY
2•mpweiher•1h ago•1 comments

"Grandma, get on": Ukrainian robot carried 77-year-old from grey zone near Lyman

https://euromaidanpress.com/2026/04/25/grandma-get-on-ukrainian-robot-carried-77-year-old-from-gr...
1•eternalreturn•1h ago•0 comments

Claude Code Opus-4-7 VS Codex GPT-5-5

2•rashidae•1h ago•0 comments