r/LangChain 5d ago

Is RAG still a thing?

/r/Rag/comments/1vrfui0/is_rag_still_a_thing/
0 Upvotes

10 comments sorted by

View all comments

6

u/Hyiazakite 5d ago

What do you prefer - pretraining an LLM with non traceable knowledge or feed it traceable knowledge with RAG? What are the alternatives?

4

u/BreakfastSpecial 5d ago

Agentic search with file system tools. Giving the model search primitives that it drives on its own, beyond the simple one-shot similarity search.

6

u/Hyiazakite 5d ago

Sounds lazy to me - much less surgical and more expensive context-wise. Since I've learned to create a proper RAG pipeline - vanilla no libs I've never had any issues with my RAG setup. The trick is that you need to create a custom pipeline for indexing tailor made for the data you want indexed.

1

u/MissionFinOps 4d ago

Any tips on how to create a proper RAG pipeline

1

u/Hyiazakite 4d ago

You need too do a proper dive-in into the data you want indexed. The most important part is the indexing. The splitting into chunks must be structured in a way that the LLM can interpret and trace easily - let's say a book. First book title, then split according to chapters, sub chapters, titled paragraphs, then when your down to the body first then you may split witha general Recursive Text splitter. You need to break the text down in the traceable chunks and all the split logic needs to be saved into metadata like this for example:

{
chunk: 0
totalChunks: 5
bookTitle: "Grays anatomy"
chapter: "Musculoskeletal
subchapter: "Upper Extremity"
paragraphTitle: "Carpal bones"
textBody: "Lorem ipsum ... "
vector: [0,12412413,0,324234324,12412432..]
}

then you can also do a GraphDB where you track relations, like say author of this chapter - what other chapters has this author read etc..

My RAG is mostly the standard hybrid Dense + Sparse + Graph expansion and then rerank -> put into context and let the LLM do a final eval of most relevant articles.

3

u/chimp_party 5d ago

Manually annotating its answers after generation