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•1y ago

Comments

zljdanceholic•1y 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: GentleOS – A pair of hobby OSes for vintage 32-bit and 16-bit PCs

https://github.com/luke8086/gentleos32
1•luke8086•1m ago•0 comments

The One Meaningless Word That We All Say Too Much (2016)

https://time.com/4308036/meaningless-word-interesting/
1•ulyssys•2m ago•0 comments

When intelligence stops being as slow as we are

https://andreaturchet.github.io/blog/riflessioni_sri.html?lang=en
1•ciwrl•3m ago•0 comments

Agents, Agile, Communism, Coercion

https://elliotmorris.net/agents-agile-communism-coercion
2•demorro•4m ago•0 comments

Iran Severely Damaged US Air Ops Center in Qatar Soon After War Began

https://www.airandspaceforces.com/us-air-operations-center-qatar-severely-damaged-iran/
2•ilamont•4m ago•0 comments

Anatomy of a Learning Stall – How LLM Hallucinations Become Human Hallucinations

https://tagide.com/blog/llm/the-anatomy-of-a-learning-stall/
1•potbelly•13m ago•1 comments

I Built a Dashboard for Every 2026 World Cup Squad

https://emot.substack.com/p/what-i-learned-analyzing-1248-world
1•emot•15m ago•0 comments

From Jupyter Notebook to production: How to ship AI systems that work

https://thenewstack.io/notebook-to-production-ai/
1•Brajeshwar•17m ago•0 comments

AI and the Desire to Destroy the Rival

https://minervaatdusk.substack.com/p/ai-and-the-desire-to-destroy-the
1•minervaatdusk•19m ago•0 comments

Thinking and Explaining Mathematics (2010)

https://mathoverflow.net/questions/38639/thinking-and-explaining
2•vismit2000•23m ago•0 comments

Marketing Clerks

https://seths.blog/2026/06/marketing-clerks/
2•herbertl•26m ago•0 comments

Scott Pelley on the Bari Weiss Era and His Last Days at '60 Minutes'

https://www.nytimes.com/2026/06/07/magazine/scott-pelley-interview.html
2•ohjeez•26m ago•1 comments

Show HN: A parser for the ISO 10303 EXPRESS language for its 40th anniversary

https://github.com/rochus-keller/EXPRESS
3•Rochus•29m ago•0 comments

Show HN: Roadbar – Gantt-style Jira deadline tracker

https://roadbar.net
2•roadbar•33m ago•0 comments

Gdf: Git Diff Merge

https://github.com/mbarlow/gdf
2•moo-jason•33m ago•1 comments

We moved our growth analytics back into Tinybird

https://www.tinybird.co/blog/why-we-moved-our-growth-analytics-back-into-tinybird
2•adastral•33m ago•0 comments

Show HN: Achu.app – turns raw captures into polished visual, with AI Issue Agent

https://www.achu.app/
2•qainsights•34m ago•0 comments

Trump doesn't rule out giving Jan. 6 rioters who attacked police payouts

https://www.nbcnews.com/politics/donald-trump/trump-jan-6-rioters-attacked-police-payouts-anti-we...
5•tcp_handshaker•38m ago•0 comments

Git: The Fabric of Software

https://ocodista.com/en/posts/git-the-fabric-of-software/
5•codista•38m ago•0 comments

Vitamin D3 During Pregnancy and Cognitive Performance at 10 Years

https://jamanetwork.com/journals/jamanetworkopen/fullarticle/2849122
8•supermatou•39m ago•0 comments

Our first customers were the exception

https://www.apurvamehta.com/blog/our-first-customers-were-the-exception
2•apurvamehta•39m ago•0 comments

Show HN: YouTube Roulette – one button, a random video

https://channelsurfer.tv/tools/random-youtube/
2•kilroy123•40m ago•0 comments

AI Native DevCon, London, June 2026 [YouTube Playlist]

https://www.youtube.com/playlist?list=PLISstAySqk7KtlYPFps1ZnK9xNIMSVkDD
2•doctaj•40m ago•0 comments

Giving AI SSH Access

https://yeri.be/giving-ai-ssh-access/
4•yakkomajuri•42m ago•0 comments

Is This Art?

https://www.totalnoise.ai/blog/is-this-art/
4•hasmatt•43m ago•2 comments

Kids Still Ride Horses to This One-Room Wyoming Schoolhouse

https://cowboystatedaily.com/2026/06/06/kids-still-ride-horses-to-this-one-room-wyoming-schoolhou...
2•Bender•43m ago•0 comments

Two Years of Enhanced Weathering in Tropical Cacao Agri-Ecosystems

https://meetingorganizer.copernicus.org/EGU26/EGU26-19336.html
2•PaulHoule•44m ago•0 comments

Brit maritime agency heralds fresh global rules for crewless cargo ships

https://www.theregister.com/offbeat/2026/06/07/brit-maritime-agency-heralds-fresh-global-rules-fo...
3•Bender•45m ago•0 comments

School shooting survivor sues AI gun detection firm failed to spot weapon

https://arstechnica.com/tech-policy/2026/06/school-shooting-survivor-sues-ai-gun-detection-firm-a...
2•Bender•46m ago•0 comments

Electric TaxiBot starts operating at Schiphol

https://www.schiphol.nl/en/sustainability/blog/electric-taxibot-starts-operating-at-schiphol/
3•geox•49m ago•0 comments