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!

Botpool Create – Build websites and apps by chatting with AI

https://www.botpool.ai/create
1•leuften•7m ago•1 comments

SimpleUI for KOReader

https://github.com/doctorhetfield-cmd/simpleui.koplugin
1•juiceland•13m ago•0 comments

Release 13.2.1 · Grafana/Grafana

https://github.com/grafana/grafana/releases/tag/v13.2.1
1•kyisaiah47•16m ago•0 comments

PayPal plans to lay off workers at its South Bay headquarters

https://www.sfchronicle.com/tech/article/paypal-san-jose-layoffs-tech-jobs-22416617.php
2•littlexsparkee•21m ago•0 comments

Ask HN: What is the ideal email domain setup?

1•bix6•22m ago•0 comments

Your website analytics deserves Love

https://anacraft.dev/#mcp
1•mehfuzh•25m ago•1 comments

Not Cool

https://placesjournal.org/article/not-cool-paris-heatwave-climate-sustainability/
2•littlexsparkee•32m ago•0 comments

Pangram Has Emerged as the Gold Standard of AI Detection. Should You Trust It?

https://www.wired.com/story/pangram-has-emerged-as-the-gold-standard-of-ai-detection/
2•bko•35m ago•1 comments

Mammut vs. Arc'terx – Brand Comparisons

https://www.lydiascapes.com/mammut-vs-arcteryx-brand-comparison/
1•Cider9986•36m ago•0 comments

Simple Is Not Small

https://jyn.dev/simple-is-not-the-same-as-small/
1•zdw•39m ago•0 comments

Navigating Code Reviews as a Code Author [video]

https://www.youtube.com/watch?v=zygtgvHp_MM
1•BiraIgnacio•40m ago•0 comments

Stop obsessing about the goddamn robot

https://despairlabs.com/blog/posts/2026-09-03-stop-obsessing-about-the-robot/
3•zdw•44m ago•0 comments

Tell HN: The Thoughts and Woes of a Full-Time Founder Part 1

3•lcampbellsoup•44m ago•0 comments

Ant Group open-sources LingBot-Vision for dense spatial perception

https://github.com/Robbyant/lingbot-vision
1•fourfire•45m ago•0 comments

Balance of Power Geopolitics in the Nuclear Age (1985)

https://archive.org/details/msdos_Balance_of_Power_1985
1•Levitating•47m ago•0 comments

The Death of Educational Content on YouTube [video]

https://www.youtube.com/watch?v=-Gnrp_caPvo
5•jahnu•49m ago•0 comments

Microsoft to impose time limits on Xbox cloud gaming subscribers

https://www.cnbc.com/2026/09/03/microsoft-xbox-game-pass-cloud-limits.html
2•bluedino•50m ago•0 comments

Hugging Face is too important to fall into Nvidia's hands

https://www.theregister.com/ai-and-ml/2026/09/03/hugging-face-is-too-important-to-fall-into-nvidi...
5•mdp2021•52m ago•2 comments

18 Ways You Can Use a Domain Name

https://www.developeddomains.com/strategies/
1•bhartzer•59m ago•0 comments

Nvidia Personal AI Router (Pair)

https://www.nvidia.com/en-us/ai-on-rtx/personal-ai-router/
3•BiraIgnacio•59m ago•0 comments

Show HN: Photosynthesis – iPhone app captures from 2 lenses, stitches to 1 photo

https://apps.apple.com/us/app/photosynthesis-2-lens-camera/id6780102370
1•sajomes•59m ago•0 comments

Hanzi Writer: JavaScript library for Chinese stroke order animations and quizzes

https://hanziwriter.org/
1•rahimnathwani•1h ago•0 comments

56k.rip – the 1996 dial-up internet experience

https://56k.rip/
2•thunderbong•1h ago•0 comments

The Multiplayer AI Manifesto

https://multiplayer-ai.com/
4•ibrahima•1h ago•0 comments

Show HN: Chrome tab group cleaner for Claude Code created tab groups

https://github.com/franzenzenhofer/chrome-tab-group-cleaner
1•franze•1h ago•0 comments

NYC mayor Mamdani imposes 1 year ban on AI for schools through 8th grade

https://www.nyc.gov/mayors-office/news/2026/09/mayor-mamdani-and-chancellor-samuels-put-students-...
17•DeepLogin•1h ago•8 comments

GTP-6 Astra

https://www.youtube.com/watch?v=1QNsdr-Qx_I
3•htk•1h ago•0 comments

Show HN: If I had to design a nuclear fusion power plant(Idea Sketch)

https://github.com/PJHkorea/discrete-filament-router
2•PJHkorea•1h ago•0 comments

4K Analog Video Feedback Device

https://www.youtube.com/watch?v=koDCabeh5kQ
1•CharlesW•1h ago•0 comments

macOS 27 Simulator by OpenAI Astra

https://macos-27-simulator.mweinbach.chatgpt.site/
2•tristanj•1h ago•2 comments