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

Comments

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

Sylve: The Most Promising Proxmox-Like Virtualization Way for FreeBSD and Bhyve

https://gyptazy.com/sylve-the-most-promising-proxmox-like-virtualization-platform-for-freebsd-and...
1•gyptazy•42s ago•1 comments

A Comptime Calculus for Zig

https://pithlessly.github.io/comptime-calculus
1•fanf2•1m ago•0 comments

Privacy and control. My tech setup

https://toidiu.com/blog/2025-12-25-privacy-and-control/
1•todsacerdoti•3m ago•0 comments

Manus joins Meta (AI agent for research, coding and data analysis)

https://www.facebook.com/business/news/manus-joins-meta-accelerating-ai-innovation-for-businesses...
1•yowmamasita•3m ago•0 comments

Avoiding space leaks at all costs

https://chshersh.com/blog/2022-08-08-space-leak.html
2•PaulHoule•7m ago•0 comments

The Weeb Economy

https://www.noahpinion.blog/p/the-weeb-economy
1•paulpauper•7m ago•0 comments

Claude Code hacked into Ring doorbell and built a native Mac OS app

https://twitter.com/zishxn/status/2006432617822814545
1•nahsiz•7m ago•0 comments

The ML drug discovery startup trying hard to not cheat

https://www.owlposting.com/p/an-ml-drug-discovery-startup-trying
1•abhishaike•8m ago•0 comments

Built an SSRF Prevention Library

https://www.npmjs.com/package/nullspace
1•bymehul•9m ago•0 comments

Bubblewrapture: The Million Bubble Countdown to the Popcalypse

https://bubblewrapture.com
1•jlansey•9m ago•1 comments

Investors predict AI is coming for labor in 2026

https://techcrunch.com/2025/12/31/investors-predict-ai-is-coming-for-labor-in-2026/
2•SunshineTheCat•10m ago•0 comments

Slicing and Dicing

https://wiki.mementodatabase.com/index.php/Slicing_&_Dicing
1•mahirsaid•11m ago•1 comments

Show HN: Basehook – Webhook management system built on Postgres

https://github.com/mehdigmira/basehook
1•mehdig10•11m ago•0 comments

GitHub Copilot Coding Adventures

https://github.com/microsoft/CopilotAdventures
1•geox•13m ago•0 comments

Meta created 'playbook' to fend off pressure to crack down on scammers

https://www.reuters.com/investigations/meta-created-playbook-fend-off-pressure-crack-down-scammer...
10•lossolo•14m ago•2 comments

Flossie, the oldest cat, celebrates milestone birthday, defying all odds

https://nypost.com/2025/12/30/lifestyle/flossie-the-worlds-oldest-cat-celebrates-milestone-birthd...
2•CTOSian•15m ago•0 comments

Show HN: Vector Defense – retro tower defense game demo

https://michaelteter.com/vector.html
2•michaelteter•15m ago•0 comments

I canceled my book deal

https://austinhenley.com/blog/canceledbookdeal.html
3•azhenley•16m ago•0 comments

Court report detailing ChatGPT's involvement with a recent murder suicide [pdf]

https://storage.courtlistener.com/recap/gov.uscourts.cand.461878/gov.uscourts.cand.461878.1.0.pdf
14•Mgtyalx•17m ago•2 comments

Open Letter to the SFWA and Community about new AI award rules

https://file770.com/erin-underwood-open-letter-to-the-science-fiction-writers-association-and-com...
2•ilamont•18m ago•0 comments

An Utterly Incomplete Look at Research from 1925

https://bcmullins.github.io/research-from-1925/
1•wannabebarista•22m ago•1 comments

Show HN: Tmplr – language agnostic template instantiation in Rust

https://github.com/exlee/tmplr
1•xlii•22m ago•0 comments

Stewart Cheifet has passed away

https://www.reddit.com/r/vintagecomputing/s/PdWFeW48w2
2•robarr•24m ago•1 comments

Ask HN: How long before the first civilian cargo flights are AI piloted?

1•givemeethekeys•26m ago•0 comments

Show HN: Claude Code Log Viewer

https://github.com/albertov/cclv
1•votrebla•26m ago•0 comments

Evaluating empirical claims: practical advice

https://seantrott.substack.com/p/evaluating-empirical-claims-practical
1•ArmageddonIt•27m ago•0 comments

When good threads go bad

https://jpcamara.com/2025/12/30/when-good-threads-go-bad.html
2•hojberg•28m ago•0 comments

Analysing Gemini and OpenAI performance for real-time sports feedback

https://github.com/GetStream/Vision-Agents/tree/main/examples/03_football_commentator_example
2•Nash0x7e2•28m ago•0 comments

Let's build the best open-source autocomplete, together

https://blog.kilo.ai/p/lets-build-the-worlds-best-open-source-autocomplete-together
2•heymax054•28m ago•0 comments

Arborium: Tree-sitter Distribution

https://fasterthanli.me/articles/introducing-arborium
1•ingve•29m ago•0 comments