SobeR (@HenryyyyyGo) header
SobeR (@HenryyyyyGo) profile picture
Joined January 2013
26
672
22
3,822
76,620
35
202
13
1,646
31,296
16
206
2
1,411
21,071
50
908
25
4,523
74,085
20
459
10
3,452
61,692
34
577
22
3,758
61,670
34
663
15
3,378
68,975
580
40,131
2,707
195,180
3,468,782
10
291
10
1,948
32,767
This
165
21,046
456
133,817
2,937,854
Make money.
73
842
24
7,152
134,764
41
959
27
6,473
141,290
I’m definitely the left one
Two types of friends:
25
What is an AI agent 📚 #ai #agent #agenticai
15
167
6
779
78,569
Here's a common misconception about RAG! Most people think RAG works like this: index a document → retrieve that same document. But indexing ≠ retrieval. What you index doesn't have to be what you feed the LLM. Once you understand this, you can build RAG systems that actually work. Here are 4 indexing strategies that separate good RAG from great RAG: 1) Chunk Indexing ↳ This is the standard approach. Split documents into chunks, embed them, store in a vector database, and retrieve the closest matches. ↳ Simple and effective, but large or noisy chunks will hurt your precision. 2) Sub-chunk Indexing ↳ Break your chunks into smaller sub-chunks for indexing, but retrieve the full chunk for context. ↳ This is powerful when a single section covers multiple concepts. You get better query matching without losing the surrounding context your LLM needs. 3) Query Indexing ↳ Instead of indexing raw text, generate hypothetical questions the chunk could answer. Index those questions instead. ↳ User queries naturally align better with questions than raw document text. This closes the semantic gap between what users ask and what you've stored. ↳ Perfect for QA systems. 4) Summary Indexing ↳ Use an LLM to summarize each chunk. Index the summary, retrieve the full chunk. ↳ This shines with dense, structured data like CSVs and tables where raw text embeddings fall flat. The bottom line: You don't need to retrieve exactly what you indexed. Match your indexing strategy to your data, and your RAG system will perform significantly better. What indexing strategies have worked best for you?
30
145
1
762
54,753
How Git Works?
7
82
2
549
21,834
AI Agent Learning Roadmap. Grab the AI Agent Handbook: codewithdhanian.gumroad.com/…
16
70
1
361
21,171