frontpage.
newsnewestaskshowjobs

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!

Bearded Vulture

https://en.wikipedia.org/wiki/Bearded_vulture
1•petethomas•1m ago•0 comments

Open source React Native debugging studio

https://www.nativescope.dev
1•guigg•2m ago•1 comments

Why bowling alleys are replacing pins with strings [video]

https://www.youtube.com/watch?v=vhjp--rA9ho
1•hydrox24•2m ago•0 comments

Flint: A Visualization Language for the AI Era

https://microsoft.github.io/flint-chart/
1•vinhnx•2m ago•0 comments

Firefox Local Mode for Web Developers

https://firefox-source-docs.mozilla.org/devtools-user/local_mode/index.html
2•csmantle•7m ago•0 comments

Leopold Aschenbrenner built a $45B AI hedge fund – and lost most of it in days

https://www.cnbc.com/2026/07/31/leopold-aschenbrenner-situational-awareness-fund-fire-sale.html
1•gilfoyle_7•8m ago•0 comments

Abora OS – A NixOS based distro

https://www.aboraos.org/
1•gallon-poem•14m ago•0 comments

I Work at Micro-Center (1985) [video]

https://www.youtube.com/watch?v=0ywbd76wVtk
1•doublepg23•16m ago•1 comments

Snapchat joins other popular platforms in fight against 'AI slop'

https://www.bbc.com/news/articles/c77g6dm5pr8o
1•vinni2•31m ago•0 comments

How Did America Get Its Name? (2016)

https://blogs.loc.gov/loc/2016/07/how-did-america-get-its-name/
1•thunderbong•38m ago•0 comments

Show HN: Random OS I made using C

https://github.com/NoTheIdiot/WindogeOS
2•notheidiot•45m ago•1 comments

Show HN: I built a Python obfuscator that keeps production traces debuggable

https://github.com/zhurong2020/pyobfus
1•znhskzj•47m ago•1 comments

Upgraded melly, our agent on sleek

1•silisleek•47m ago•0 comments

Google is actively hiring someone to save the world from AGI/ASI

https://www.google.com/about/careers/applications/jobs/results/95635593379095238
5•arm32•51m ago•1 comments

The Math Superstar Who's Terrified of AI–and Just Took a Job at OpenAI

https://www.wsj.com/tech/ai/openai-jacob-tsimerman-fields-medal-ai-safety-391d0f79
3•berkeleyjunk•52m ago•0 comments

Protecting the Nation's Communications Systems from Cybersecurity Threats

https://www.federalregister.gov/documents/2026/07/31/2026-15601/modernization-of-the-nations-aler...
1•Jimmc414•53m ago•0 comments

De mora luminis: Roemer's discovery 350 years later

https://arxiv.org/abs/2607.28512
1•Jimmc414•53m ago•0 comments

What's in a Name: A Guide to the Many Flavours of TeX

https://www.overleaf.com/learn/latex/Articles/What%27s_in_a_Name%3A_A_Guide_to_the_Many_Flavours_...
1•smitty1e•54m ago•0 comments

Accepting a Messy Git History

https://beza1e1.tuxen.de/git_two_users.html
1•matheusmoreira•54m ago•0 comments

SF-schema-snapshot – dump a Salesforce org's schema to SQLite

https://github.com/MogwaiNerfHerder/sf-schema-snapshot
1•DavidRussellCG•55m ago•0 comments

Show HN: Sanitizer – Strip sensitive data from documents locally before an LLM

https://provexar.ai/sanitizer
1•MVKozyrev•1h ago•0 comments

What's Happening with IT Hiring?

1•hannibalevit•1h ago•1 comments

Cdbx – an AI coding IDE where you can bring your own API key and own the code

https://cdbx.ai/
1•chbutler•1h ago•0 comments

Show HN: WhisperKeys - Offline macOS dictation, key-by-key

https://github.com/j-sofia/WhisperKeys
1•j-sofia•1h ago•1 comments

A Week in Matrix

https://piegames.de/dumps/a-week-in-matrix/
1•Kesseki•1h ago•0 comments

Tell HN: System76 has critical firmware issues unresolved for over 3 years

2•jaime-ez•1h ago•0 comments

Urldn – A URL shortener with analytics and an AI data analyst

https://waitlist.urldn.com/
2•assmira•1h ago•0 comments

Overactive Neurons Cause Excessive Sweating

https://www.the-scientist.com/overactive-neurons-cause-excessive-sweating-74787
2•gmays•1h ago•0 comments

Yann LeCun on What Comes After LLMs [video]

https://www.youtube.com/watch?v=ngBraLDqzdI
2•caminante•1h ago•0 comments

Speculative Decoding, Visualized

https://www.adaptive-ml.com/post/speculative-decoding-visualized
1•krackers•1h ago•0 comments