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!

I am Scott Hansen, I make music as Tycho and visual work as ISO50 (2013)

1•andsoitis•4m ago•0 comments

China's Comicup convention showcases 'nüwu,' a niche genre avoiding romance

https://www.sixthtone.com/news/1018736/NoWoo:AtChina’sTopAnimeConvention,LoveTakesaBackSeat
1•whiteblossom•4m ago•0 comments

GPT‑Live

https://openai.com/index/introducing-gpt-live/#
1•adithyaharish•11m ago•0 comments

Modernizing Kernel Cryptography [video]

https://www.youtube.com/watch?v=TBUK5DKeXRg
1•zdkaster•20m ago•1 comments

Meta Tapped a Pentagon Supplier to Prototype Face Recognition for Its Glasses

https://www.wired.com/story/meta-rank-one-computing-face-recognition-smart-glasses/
2•1vuio0pswjnm7•23m ago•0 comments

Feds demand autonomous vehicle companies stop interfering with first responders

https://techcrunch.com/2026/07/08/feds-demand-autonomous-vehicle-companies-stop-interfering-with-...
2•rilan•29m ago•0 comments

Neuromorphic Silicon Neuron Controller for Deep Brain Stimulation in Parkinsons

https://arxiv.org/abs/2607.05453
1•Jimmc414•32m ago•0 comments

I fact-checked 15 stats from a 1.2M-subscriber creator against primary sources

https://hemantpatil.substack.com/p/i-fact-checked-15-stats-from-a-12m
1•HPatil7•37m ago•1 comments

How to Kill the Bloat in Claude Code's System Prompt

https://www.aihero.dev/how-to-kill-the-bloat-in-claude-codes-system-prompt
2•Garbage•38m ago•0 comments

How to come up with a passion project

https://greatlittle.software/blog/how-to-come-up-with-a-passion-project/
2•Garbage•39m ago•0 comments

Invisible Companies: Why Overlooked Businesses Win

https://colossus.com/article/invisible-companies/
1•Garbage•40m ago•0 comments

Reproducing an Indirect Prompt Injection Against a RAG Pipeline

https://koreshield.ai/blog/reproducing-indirect-prompt-injection-rag
1•uncleteslim•42m ago•0 comments

Benchmarking quantum advantage: Quantum Advantage Tracker

https://quantum-advantage-tracker.github.io/
1•Alien1Being•42m ago•1 comments

'Humanizer' tool can erase signs of AI-written text

https://www.nature.com/articles/d41586-026-02105-3
2•gnabgib•47m ago•0 comments

I Built the Ωmega Agent

https://omegas.dev
2•LivingGlitcher•47m ago•2 comments

NPM 12 makes install scripts, Git, and remote-url dependencies opt-in by default

https://github.blog/changelog/2026-07-08-npm-install-time-security-and-gat-bypass2fa-deprecation/
2•slymax•55m ago•0 comments

Cancer cases worldwide are expected to soar in the coming decades

https://www.washingtonpost.com/health/2026/07/08/why-who-is-warning-about-escalating-cancer-rates...
4•brandonb•55m ago•1 comments

Waymo Calls Police on Teenage Riders Who Were Drinking

https://www.roadandtrack.com/news/a71866405/waymo-robotaxi-calls-police-on-teenage-passengers-dri...
3•kerim-ca•59m ago•1 comments

Top Legal Adviser to Joint Chiefs Is Stepping Down a Year Before Completing Term

https://www.propublica.org/article/eric-widmar-retiring-joint-chiefs-legal-adviser
8•Jimmc414•1h ago•0 comments

Practical Lessons from Reinforcement Learning Post Training Experiments [pdf]

https://zenodo.org/records/21115798
2•luvverma2011•1h ago•0 comments

China Cuts 12,200 University Programs, Replaces Many with AI Degrees

https://www.forbes.com/sites/annaesakismith/2026/06/23/china-cuts-12200-university-programs-repla...
4•happy-go-lucky•1h ago•0 comments

Non-tech background, choosing between using CLaudeCode and CodeX

2•virtuallymundo•1h ago•2 comments

Texans deserve more then a Ken Paxton snake game

https://paxtonsnake.3d2k.com/
2•KilledByAPixel•1h ago•1 comments

Show HN: Figment – An AI that I made my friends talk to for 2 weeks

https://figment.computer/
2•subby•1h ago•0 comments

Burner Email, Temp email Box lasting 24 hours

https://burneremail24.com/
3•texasjosh•1h ago•1 comments

Llama 2 LLM on DOS (2025)

https://yeokhengmeng.com/2025/04/llama2-llm-on-dos/
2•userbinator•1h ago•0 comments

Rutazo – Argentina's freight marketplace, built solo in 4 months

https://www.rutazo.com
2•cookinat•1h ago•0 comments

Citicorp Center Engineering Crisis

https://en.wikipedia.org/wiki/Citicorp_Center_engineering_crisis
3•thunderbong•1h ago•1 comments

What's slowing down the AI buildout

https://www.worksinprogress.news/p/ai-is-bottlenecked-by-the-grid
2•droidjj•1h ago•0 comments

Researchers uncover possible cause of muscle pain from cholesterol medication

https://medicalxpress.com/news/2026-07-uncover-muscle-pain-widely-cholesterol.html
4•brandonb•1h ago•0 comments