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

Comments

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

Losing Confidence (In macOS)

https://mjtsai.com/blog/2025/12/03/losing-confidence/
1•dmm•1m ago•0 comments

Show HN: Mdit – clean Markdown notes with local files

https://mdit.app/
1•hjinco•4m ago•0 comments

What Is MetaScreenshotCapture API?

https://imgur.com/a/ehRv2Am
1•anf0•5m ago•1 comments

AI slope keeps a man in jail

https://www.nytimes.com/2025/11/25/us/prosecutor-artificial-intelligence-errors-lawyers-californi...
2•Krakodil•5m ago•0 comments

PCILeech: Direct Memory Access via PCIe FPGA

https://github.com/ufrisk/pcileech
1•lionkor•5m ago•0 comments

A Rosetta Stone for AI Benchmarks

https://epoch.ai/blog/a-rosetta-stone-for-ai-benchmarks
1•mustaphah•7m ago•0 comments

Frontier AI Models Demonstrate Human-Level Capability in Smart Contract Exploits

https://decrypt.co/350575/ai-models-human-level-capability-smart-contract-exploits
1•wslh•8m ago•0 comments

Development of Mother 3

https://en.wikipedia.org/wiki/Development_of_Mother_3
1•tosh•8m ago•0 comments

Enthusiast modder creates the smallest-ever PlayStation using genuine chips

https://www.tomshardware.com/video-games/playstation/enthusiast-modder-celebrates-playstations-31...
2•not4uffin•9m ago•0 comments

Data Science Weekly – Issue 628

https://datascienceweekly.substack.com/p/data-science-weekly-issue-628
2•sebg•9m ago•0 comments

Where most people trust others and where they don't around the world

https://www.pewresearch.org/short-reads/2025/12/01/where-most-people-trust-others-and-where-they-...
1•throw0101d•9m ago•1 comments

Leak exposes the internal operations of Intellexa's mercenary spyware

https://securitylab.amnesty.org/latest/2025/12/intellexa-leaks-predator-spyware-operations-exposed/
1•ledoge•10m ago•0 comments

Structured Iteration

https://thecppway.com/posts/structured_iteration/
1•ibobev•10m ago•0 comments

C++ Enum Class and Error Codes, Part 3

https://mropert.github.io/2025/12/03/enum_class_error_codes_part3/
1•ibobev•11m ago•0 comments

Why don't we get more scientific breakthroughs?

https://lemire.me/blog/2025/12/03/why-dont-we-get-more-scientific-breakthroughs/
1•ibobev•12m ago•0 comments

Bungie Settles Plagiarism Lawsuit That Became About Content Vaulting

https://kotaku.com/bungie-plagiarism-lawsuit-destiny-2-content-vault-2000644793
1•PaulHoule•13m ago•0 comments

Why One Man Is Fighting for Our Right to Control Our Garage Door Openers

https://www.nytimes.com/2025/12/04/technology/personaltech/why-one-man-is-fighting-for-our-right-...
2•donohoe•14m ago•1 comments

Top announcements of AWS re:Invent 2025

https://aws.amazon.com/blogs/aws/top-announcements-of-aws-reinvent-2025/
1•JamesAdir•15m ago•0 comments

Is the Launched Global Internship real or fake?

1•pshatabdi•15m ago•0 comments

Big Tech are the new Soviets – We're in a planned economy now

https://unherd.com/2025/12/big-tech-are-the-new-soviets/
4•bloke_zero•16m ago•0 comments

Bond investors warned US Treasury over picking Kevin Hassett as Fed chair

https://www.ft.com/content/ad4bfd8b-a0f8-4f9e-a234-eed589e3d0ab
2•zerosizedweasle•22m ago•0 comments

Global Renewables Watch

https://github.com/microsoft/global-renewables-watch
1•marklit•23m ago•0 comments

TidesDB vs. RocksDB

https://tidesdb.com/articles/tidesdb-vs-rocksdb/
2•alexpadula•25m ago•0 comments

Deeplearning.ai launched course on building coding agents with tool execution

https://learn.deeplearning.ai/courses/building-coding-agents-with-tool-execution/information
6•terezatizkova•25m ago•0 comments

OpenAI to acquire Neptune, a startup that helps with AI model training

https://www.cnbc.com/2025/12/03/openai-to-acquire-neptune-an-ai-model-training-assistance-startup...
3•pseudolus•26m ago•0 comments

Imo.im – Instant Messenger

https://imo.im/
2•amai•29m ago•0 comments

Study Finds Connection Between Poor Mental Health and Dark Web Use

https://www.fau.edu/newsdesk/articles/dark-web-mental-health
1•giuliomagnifico•33m ago•0 comments

Will blockbuster obesity drugs revolutionize addiction treatment?

https://www.nature.com/articles/d41586-025-03911-x
2•sohkamyung•34m ago•0 comments

Wooden skyscrapers point the way to more sustainable cities

https://www.nature.com/articles/d41586-025-03928-2
5•sohkamyung•36m ago•0 comments

18,000 Reasons It's So Hard to Build a Chip Factory in America

https://www.nytimes.com/2025/12/04/business/tsmc-phoenix-fab.html
3•giuliomagnifico•40m ago•0 comments