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!

2028 Could Bring the Most Mind-Bendingly Expensive Apple Product of All Time

https://gizmodo.com/2028-could-bring-the-most-mind-bendingly-expensive-apple-product-of-all-time-...
1•megamike•1m ago•0 comments

The cost of AI-assisted development: cognitive fatigue

https://warpedvisions.org/blog/2025/hitting-the-wall-at-ai-speed/
3•winter_blue•3m ago•0 comments

How to Get What You Want

https://andys.blog/how-to-get-what-you-want/
2•andytratt•4m ago•0 comments

Amicro: Micro-Transitions Library

https://amicro.vercel.app/
2•handfuloflight•8m ago•0 comments

Argocd-AI-Assistant

https://github.com/saidsef/argocd-ai-assistant
2•saidsef•9m ago•0 comments

Physicists recreate black hole energy extraction in the lab

https://www.sciencedaily.com/releases/2026/07/260711010120.htm
2•stonlyb•12m ago•0 comments

Grok 4.6 and GPT5.6 beat Anthropic for finding security vulnerabilities in PRs

https://docs.damsecure.ai/blog/pr-review-security-benchmark/
2•pcollins123•12m ago•1 comments

Designing and assembling my first PCB

https://vilkeliskis.com/b/2026/0711.html
2•tadasv•12m ago•0 comments

Prescryb – an MCP server for CVE and config remediation

https://github.com/konstruktoid/prescryb
2•konstruktoid•13m ago•0 comments

Privacy-First PDF Tools

https://cleanvault.github.io/
2•audit-mate•13m ago•1 comments

Dither Kit: Make your charts dither

https://www.tripwire.sh/dither-kit
2•handfuloflight•14m ago•0 comments

Architecture Description Languages [pdf]

https://ics.uci.edu/~taylor/documents/2000-ADLs-TSE.pdf
3•ascent817•15m ago•0 comments

Why Vanilla JavaScript

https://guseyn.com/html/posts/why-vanilla-js.html
2•guseyn•15m ago•0 comments

Energy Engineer Explains: "AI Will Take Your Job" Is Laughably Wrong [video]

https://www.youtube.com/watch?v=sQGZXrzykpU
2•4lx87•16m ago•0 comments

Cyberpunk Comics, Manga and Graphic Novels

https://shellzine.net/cyberpunk-comics/
7•zdw•24m ago•0 comments

Mastodon, the Only Good Choice

https://www.tbray.org/ongoing/When/202x/2026/07/05/Choose-Mastodon
4•zdw•25m ago•0 comments

Show HN: Cpulse – See why your Docker Compose stack is stuck

https://github.com/hyturing/compose-pulse
2•hyturing•25m ago•0 comments

How to build a circular LCD clock

https://blinry.org/lcd-clock/
3•zdw•28m ago•1 comments

We taught our platform to learn its own pricing decisions

https://avriz.io/eng/paper
2•rezat•30m ago•2 comments

LLMs and Shaders

https://amitp.blogspot.com/2026/07/llms-and-shaders.html
2•bobbiechen•34m ago•0 comments

SK Hynix CEO sees worst memory shortage in 2027, with high demand beyond 2030

https://www.reuters.com/world/asia-pacific/sk-hynix-ceo-sees-worst-ever-memory-supply-shortage-20...
3•jnord•35m ago•1 comments

A Speed Limit for Computers

https://caolan.uk/notes/2026-07-02_a_speed_limit_for_computers.cm
3•zdw•40m ago•0 comments

Show HN: Collaborative context-sharing memory platform for agents and teams

https://xysq.ai/
2•ximihoque•41m ago•0 comments

A Technology for Free Will

https://ziyzhu.com/a-technology-for-free-will
2•ziyzhu•41m ago•0 comments

You can now create and chat with an AI Mommy on Chatbrat

https://chatbrat.ai/bratlog/chat-with-ai-mommy-free
2•henrypissler•43m ago•1 comments

Show HN: Codebase Posters – turn any Git repo into generative poster art

https://github.com/unable12/codebase-posters
3•unable0•43m ago•0 comments

What is Property Based Testing? (2016)

https://hypothesis.works/articles/what-is-property-based-testing/
3•downbad_•47m ago•0 comments

Bacteria turning uranium into stable compound

https://scitechdaily.com/bacteria-turn-toxic-uranium-into-a-surprisingly-stable-compound/
3•Gaishan•50m ago•0 comments

Ask HN: How do you use LLMs for private discussions?

4•emerongi•52m ago•2 comments

Europe's productivity keeps outpacing the US

https://sethackerman.substack.com/p/europes-productivity-keeps-outpacing
4•ZeljkoS•53m ago•0 comments