Who it is forAn AI engineer who must build an assistant that answers questions over company documents and needs to choose the retrieval design first.
The problemRetrieval quality decides whether a RAG assistant answers correctly, and the design choices for ingestion, chunking, and search are easy to get wrong.
The outcomeA written RAG design that names the parsing, chunking, hybrid search, and reranking choices with reasons.
What you need first
- A web browser to open the README at https://github.com/amitshekhariitbhu/ai-system-design
- Basic familiarity with software system design concepts such as caching, load balancing, and queues
- A practice problem to design, such as a document Q&A assistant or a customer support agent
Steps
- Open the RAG (Retrieval Augmented Generation) section of the README at https://github.com/amitshekhariitbhu/ai-system-design.
- Read Document Parsing and Ingestion and Chunking Strategies, then write down the chunking approach for your documents.
- Read Hybrid Search and Reranking, then decide whether your queries need keyword matching, semantic matching, or both.
- Read the Vector Database section and pick an index type for your data size.
- Write a one-page design that lists each choice, the reason for it, and how you would measure retrieval quality.
Prompt for your agent
Using the repo amitshekhariitbhu/ai-system-design, read the RAG section and produce a retrieval design for <target>, covering chunking, hybrid search, and reranking. Output the design as a Markdown document with one section per choice. Verify that each choice cites the README section it came from.
Caveat. The README explains the RAG options but does not provide code, so you still need to implement and test the chosen design yourself.
Get 5 new use cases every morning. Free, one short email, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Disclaimer
Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked "Seen in the wild", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email [email protected] and we will look at it promptly. Full disclaimer page