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•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!

Working Was the Beginning

https://themackabu.dev/blog/ant-part-two
2•theMackabu•4m ago•0 comments

Node.js 26.0.0 (Current)

https://nodejs.org/en/blog/release/v26.0.0
2•partsch•7m ago•0 comments

What if LLMs are mostly crystallized intelligence?

https://www.lesswrong.com/posts/Zxw3ZcmSdndpQyJ6M/what-if-llms-are-mostly-crystallized-intelligence
2•joozio•16m ago•0 comments

AWS lets agents drive virtual desktops which could cost 500k tokens per click

https://www.theregister.com/2026/05/06/aws_workspaces_agent_access/
3•beardyw•21m ago•1 comments

PostHog Code

https://posthog.com/code
3•dotmanish•22m ago•0 comments

Bitter Lessons from the ISSpresso

https://mceglowski.substack.com/p/bitter-lessons-from-the-isspresso
3•kome•24m ago•0 comments

.de domains were 'down' for 2 hours

https://status.denic.de/pages/incident/592577eab611ce1e0d00046f/69fa60ef9d12f5057a974f38
2•riedel•25m ago•1 comments

AI is starting to beat doctors at making correct diagnoses

https://www.science.org/content/article/ai-starting-beat-doctors-making-correct-diagnoses
5•rxmux•30m ago•0 comments

SensorHub – The event-driven version of Clawhub (giving AI agents "ears")

https://world2agent.ai/hub
4•WayLonWen•32m ago•0 comments

Pensero – I knew I was doing the work. I just couldn't prove it

https://pensero.ai/blog/i-knew-i-was-doing-the-work.-i-just-couldn-t-prove-it.
2•sabatesduran•33m ago•0 comments

New PyXHDL Release (Python Frontend To VHDL And Verilog)

https://github.com/davidel/pyxhdl
2•dadaz•34m ago•0 comments

Academics Need to Wake Up on AI

https://www.popularbydesign.org/p/academics-need-to-wake-up-on-ai
3•barry-cotter•44m ago•1 comments

The reinvention of tradition: charismatic leadership in Silicon Valley

https://www.tandfonline.com/doi/epdf/10.1080/1600910X.2026.2666346
2•kome•45m ago•0 comments

Reverse-engineering the 1998 Ultima Online demo server

https://draxinar.github.io/articles/2026-05-01-uodemo-reverse-engineering.html
3•notsentient•47m ago•0 comments

Singapore introduces caning for boys who bully others at school

https://www.theguardian.com/world/2026/may/06/singapore-caning-school-bullies
5•rustoo•48m ago•0 comments

Bottlenecks and Productivity

https://calnewport.com/on-bottlenecks-and-productivity/
2•tapanjk•49m ago•0 comments

Google DeepMind workers vote to unionize over military AI deals

https://www.wired.com/story/google-deepmind-workers-vote-to-unionize-over-military-ai-deals/
6•ascorbic•52m ago•0 comments

RFK Jr. plans to curb antidepressants, which he falsely compares to heroin

https://arstechnica.com/health/2026/05/rfk-jr-plans-to-curb-antidepressants-which-he-falsely-comp...
6•rbanffy•1h ago•1 comments

Complete .de TLD was off-line for 4 hours

https://blog.denic.de/en/denic-reports-dnssec-disruption-affecting-de-domains/
3•teekert•1h ago•2 comments

Reflections on the motive power of heat (1890)

https://gutenberg.org/cache/epub/78610/pg78610-images.html
1•petethomas•1h ago•0 comments

Ask HN: Is the future everyone having 100 MCP processes running on their PC?

3•ex-aws-dude•1h ago•2 comments

Integrate Cashfree Payments in less than 7 minutes

https://tech.cashfree.com/building-cashfree-agent-skills-a-task-aware-knowledge-layer-for-ai-codi...
1•shritama_saha•1h ago•0 comments

Gitea Runner 1.0.0 is released

https://blog.gitea.com/release-of-runner-1.0.0/
2•jandeboevrie•1h ago•0 comments

Second Circuit Sidesteps "Server Test" in Embedded Video Copyright

https://natlawreview.com/article/second-circuit-sidesteps-server-test-embedded-video-copyright-ru...
1•petethomas•1h ago•0 comments

Some deaf children are hearing again because of a new gene therapy

https://www.vox.com/future-perfect/487590/gene-therapy-crispr-deafness-food-and-drug-administration
2•yanis_t•1h ago•0 comments

A game-changer for good health? Scientists believe 'we are when we eat'

https://www.theguardian.com/commentisfree/2026/may/05/game-changer-good-health-scientists-we-are-...
4•akbarnama•1h ago•0 comments

Can language models rebuild programs from scratch?

https://programbench.com
2•beau•1h ago•1 comments

American History X was a hit but ego blew my career, says director

https://www.thetimes.com/culture/film/article/tony-kaye-edward-norton-american-history-x-zbwcg7chq
2•petethomas•1h ago•0 comments

The guide to RL environments: building and scaling them in the LLM era

https://huggingface.co/spaces/AdithyaSK/rl-environments-guide
2•babelfish•1h ago•0 comments

Show HN: Cargo-affect – Plan affected Rust workspace tests from a Git diff

https://github.com/lightsofapollo/cargo-affect
1•lightsofapollo•1h ago•0 comments