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!

Making Gamedev Tooling For Windows 3.1 in Turbo C++ [video]

https://www.youtube.com/watch?v=-7mc-D5V4L8
1•xyproto•2m ago•0 comments

Nanoscale Vacuum-Channel Transistor

https://en.wikipedia.org/wiki/Nanoscale_vacuum-channel_transistor
1•akshatjiwan•7m ago•0 comments

Texas Republican Called Out for Sharing AI Rendering of Rescued Soldier

https://www.mediaite.com/media/news/texas-republican-called-out-for-sharing-ai-rendering-of-rescu...
1•01-_-•7m ago•0 comments

Anomaly detection with nothing but Welford's algorithm and a KV store

https://uriv.me/blog/anomaly-detection-with-welford-and-kv
2•birdculture•17m ago•0 comments

All GANs No Brakes

https://mayberay.bearblog.dev/all-gans-no-brakes/
1•mugamuga•19m ago•0 comments

Paramera modified carbon fiber hood

https://www.porsche-km.com/productinfo/192708.html
1•edl8888•24m ago•0 comments

NIMBY Rails

https://store.steampowered.com/app/1134710/NIMBY_Rails/
2•altilunium•25m ago•0 comments

Show HN: Reverse-engineered the FPGA bitstream using Claude Code

https://github.com/14sea/Cyclone_CRAM_Mapper
3•14sea•25m ago•1 comments

Hell Is a World in Which Everybody Writes Like Axios (2022)

https://newrepublic.com/article/167857/axios-smart-brevity-book-hell-world
2•Tomte•25m ago•1 comments

Euro-Office – Your sovereign office

https://github.com/Euro-Office
14•XzetaU8•34m ago•1 comments

College instructor turns to typewriters to curb AI use, teach life lessons

https://apnews.com/article/typewriter-ai-cheating-chatgpt-cornell-ce10e1ca0f10c96f79b7d988bb56448b
2•1vuio0pswjnm7•35m ago•1 comments

Disposable Tools Manifesto

https://blog.vtemian.com/post/disposable-tools-manifesto/
1•vtemian•35m ago•0 comments

AI Damaged a Friendship

https://www.bartmol.io/how-ai-damaged-a-friendship/
1•Maulwurf•38m ago•0 comments

Vincelwt/gloomberb: Finance terminal, in your terminal

https://github.com/vincelwt/gloomberb
1•rcarmo•39m ago•0 comments

Java: The Foreign Function and Memory API

https://dev.java/learn/ffm/
2•tosh•39m ago•0 comments

Show HN: I developed a node editor framework using gpui

https://github.com/tu6ge/ferrum-flow
2•tu6ge•48m ago•1 comments

Humans Persistently Devalue AI-Generated Creative Writing

https://psycnet.apa.org/fulltext/2027-12675-001.html
1•Growtika•53m ago•0 comments

The end of password pain: building frictionless authentication at the Guardian

https://theguardian.engineering/blog/the-end-of-password-pain-building-frictionless-authenticatio...
2•Tomte•56m ago•1 comments

Anthropic buys biotech startup Coefficient Bio in $400M deal: Reports

https://techcrunch.com/2026/04/03/anthropic-buys-biotech-startup-coefficient-bio-in-400m-deal-rep...
1•doppp•57m ago•0 comments

From Hierarchy to Intelligence

https://block.xyz/inside/from-hierarchy-to-intelligence
1•nomagicbullet•57m ago•0 comments

PlayStation 3 emulator makes Cell CPU 'breakthrough' that improves performance

https://www.tomshardware.com/video-games/playstation/rpcs3-ps3-emulator-gets-cell-cpu-breakthroug...
1•adunk•58m ago•0 comments

VLA learns how to act. S2S decides whether the motion is physically trustworthy

https://github.com/timbo4u1/S2S
2•s2sphysical•1h ago•0 comments

Axplorer: Democratizing the search for interesting mathematical constructions

https://axiommath.ai/territory/axplorer
1•T-A•1h ago•0 comments

I stopped hitting Claude's usage limits – things I changed

https://twitter.com/0x_kaize/status/2038286026284667239
3•taubek•1h ago•1 comments

Hitachi Ltd, Part I

https://www.abortretry.fail/p/hitachi-ltd-part-i
1•XzetaU8•1h ago•0 comments

France pulls last gold held in US for $15B gain

https://www.mining.com/france-pulls-last-gold-held-in-us-for-15b-gain/
51•teleforce•1h ago•31 comments

A Tale of AI Betrayal and Snapshotting Victory

https://makc.co/essays/gpt-clusterfuck/
3•makc•1h ago•1 comments

Dennett's Real Patterns in Science and Nature

https://direct.mit.edu/books/oa-edited-volume/6112/Dennett-s-Real-Patterns-in-Science-and-Nature
1•__patchbit__•1h ago•0 comments

Microsoft Silverlight

https://en.wikipedia.org/wiki/Microsoft_Silverlight
1•tosh•1h ago•0 comments

The Image Boards of Hayao Miyazaki

https://animationobsessive.substack.com/p/the-image-boards-of-hayao-miyazaki
1•vinhnx•1h ago•0 comments