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•10mo ago

Comments

zljdanceholic•10mo 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!

Ask HN: Android tablet, iPad or e-ink tablet, which device for reading?

1•Bridged7756•42s ago•0 comments

Show HN: Tracemap – run and visualize traceroutes from probes around the world

https://tracemap.dev/
2•solhuang•55s ago•0 comments

Live Metadata for What's Playing on Every Station Is Here

https://audiophile.fm/blog/live-metadata-currently-playing-internet-radio
1•bojanvidanovic•1m ago•0 comments

GitHub Actions is shitting the bed again

https://www.githubstatus.com/incidents/g5gnt5l5hf56
1•drcongo•2m ago•0 comments

Ctrl-C in psql gives me the heebie-jeebies

https://neon.com/blog/ctrl-c-in-psql-gives-me-the-heebie-jeebies
1•gmac•2m ago•0 comments

Altman takes jabs at Anthropic, says govt should be more powerful than companies

https://www.cnbc.com/2026/03/05/open-ai-altman-anthropic-pentagon-war.html
1•nickthegreek•2m ago•0 comments

AI Tools Creating "Convenience Loops" That Reshape Developer Language Choices

https://www.infoq.com/news/2026/03/ai-reshapes-language-choice/
1•mikece•3m ago•0 comments

Passing around Specs instead of Software

https://bsky.app/profile/maggieappleton.com/post/3mgcheix3rk2o
1•cyanbane•3m ago•0 comments

Britain's 10 greatest brutalist buildings

https://www.telegraph.co.uk/travel/destinations/europe/united-kingdom/britain-greatest-brutalist-...
1•thinkingemote•3m ago•0 comments

Show HN: Montage – Quickly build product launch videos with coding agents

https://github.com/simplexlabs/montage
1•marcon680•4m ago•0 comments

Nominal dropped a product catalog for engineering software and it's beautiful

https://catalog.nominal.io/
2•daj40•4m ago•1 comments

Rediscovering joy in silly computer stuff

https://www.counting-stuff.com/rediscovering-joy-in-silly-computer-stuff/
1•Tomte•4m ago•0 comments

Show HN: CodeConvert – Developer Conversion Tools (JSON→TS, YAML↔JSON, etc.)

https://www.codeconvert.dev/
1•tuxnotfound•6m ago•0 comments

Show HN: OXPT – Visual branching canvas for prompt versioning (Korean support)

https://www.oxpt.online
1•macnorton•6m ago•0 comments

Impacts of goat browsing on native vegetation during invasive plant control

https://onlinelibrary.wiley.com/doi/10.1111/rec.70338
1•PaulHoule•7m ago•0 comments

"Future-proofing" PC builds

https://rubenerd.com/futureproofing-pc-builds/
1•mikece•7m ago•0 comments

You Must Review AI-Generated Code

https://iamvishnu.com/posts/you-must-review-ai-code
1•vishnuharidas•8m ago•0 comments

Aging Redefined: Cognitive and Physical Improvement with Positive Age Beliefs

https://www.mdpi.com/2308-3417/11/2/28
1•bikenaga•9m ago•0 comments

The Custom ASIC Thesis

https://www.latent.space/p/ainews-the-custom-asic-thesis
1•amelius•9m ago•0 comments

A 130KB Markdown file that turns Claude Code into an opinionated senior PM

https://github.com/Digidai/product-manager-skills
2•genedai•11m ago•1 comments

Slow Living

https://francescrossley.com/slow-living/
1•speckx•11m ago•0 comments

Show HN: Beads planner plugin for Claude Code

https://github.com/jbdamask/john-claude-skills/tree/main/plugins/beads-planner
1•jbdamask•11m ago•0 comments

Can You Nationalize a Frontier AI Lab?

https://jhallard.substack.com/p/can-you-nationalize-a-frontier-ai
1•forthwall•12m ago•0 comments

Devenv 2.0: A Fresh Interface to Nix

https://devenv.sh/blog/2026/03/05/devenv-20-a-fresh-interface-to-nix/
3•ryanhn•12m ago•0 comments

We signed a treaty. The Senate never voted on it. Now AI reshapes the economy

https://unratified.org/why/
1•9wzYQbTYsAIc•14m ago•1 comments

Datasets for Reconstructing Visual Perception from Brain Data

https://github.com/seelikat/neuro-visual-reconstruction-dataset-index
2•katsee•14m ago•0 comments

WTF is going on with databases? SpacetimeDB controversial release

https://www.paralect.com/trends/spacetimedb-release
1•igorkrasnik•15m ago•1 comments

Semiotic-Reflexive Transformer for Meaning Divergence Detection and Modulation

https://sublius.substack.com/p/the-semiotic-reflexive-transformer
2•spacebacon•15m ago•1 comments

Show HN: Bb – Windows through a detective's lens

https://github.com/cristeigabriela/bb
1•gabriela_c•16m ago•0 comments

Npd: Notepad, Notes, Sketch and Tasks

https://play.google.com/store/apps/details?id=nota.npd.com&hl=en_US
1•bugtishop•16m ago•1 comments