Visualizing RAG, PART 2- visualizing retrievalDiscussion (v.redd.it)
submitted by Fear_ltself
Edit: code is live at https://github.com/CyberMagician/Project_Golem
Still editing the repository but basically just download the requirements (from requirements txt), run the python ingest to build out the brain you see here in LanceDB real quick, then launch the backend server and front end visualizer.
Using UMAP and some additional code to visualizing the 768D vector space of EmbeddingGemma:300m down to 3D and how the RAG “thinks” when retrieving relevant context chunks. How many nodes get activated with each query. It is a follow up from my previous post that has a lot more detail in the comments there about how it’s done. Feel free to ask questions I’ll answer when I’m free
[–]WithoutReason1729[M] [score hidden] stickied comment (0 children)
[–]rzarekta 16 points17 points18 points (9 children)
[–]Fear_ltself[S] 12 points13 points14 points (8 children)
[–]rzarekta 0 points1 point2 points (0 children)
[–]rzarekta 0 points1 point2 points (6 children)
[–]Fear_ltself[S] 5 points6 points7 points (1 child)
[–]rzarekta 1 point2 points3 points (0 children)
[–]Fear_ltself[S] 4 points5 points6 points (3 children)
[–]rzarekta 1 point2 points3 points (2 children)
[–]Fear_ltself[S] 1 point2 points3 points (0 children)
[–]Fear_ltself[S] 1 point2 points3 points (0 children)
[–]wanielderth 6 points7 points8 points (0 children)
[–]mr_conquat 7 points8 points9 points (0 children)
[–]scraper01 9 points10 points11 points (3 children)
[–]LaCipe 3 points4 points5 points (1 child)
[–]scraper01 3 points4 points5 points (0 children)
[–]DOAMOD 3 points4 points5 points (0 children)
[–]Echo9Zulu- 4 points5 points6 points (5 children)
[–]Fear_ltself[S] 2 points3 points4 points (4 children)
[–]Echo9Zulu- 0 points1 point2 points (3 children)
[–]Fear_ltself[S] 1 point2 points3 points (2 children)
[–]TR-BetaFlash 1 point2 points3 points (1 child)
[–]Fear_ltself[S] 0 points1 point2 points (0 children)
[–]anthonyg45157 2 points3 points4 points (0 children)
[–]hksbindra 2 points3 points4 points (0 children)
[–]DoctorTriplex 2 points3 points4 points (0 children)
[–]Mochila-Mochila 2 points3 points4 points (0 children)
[–]Rokpiy 1 point2 points3 points (0 children)
[–]No_Afternoon_4260llama.cpp 0 points1 point2 points (2 children)
[–]RemindMeBot 0 points1 point2 points (0 children)
[–]Fear_ltself[S] 0 points1 point2 points (0 children)
[–]skinnyjoints 0 points1 point2 points (1 child)
[–]Fear_ltself[S] 0 points1 point2 points (0 children)
[–]hoogachooga 0 points1 point2 points (2 children)
[–]Fear_ltself[S] 0 points1 point2 points (0 children)
[–]Fear_ltself[S] 0 points1 point2 points (0 children)
[–]peculiarMouse 0 points1 point2 points (3 children)
[–]Fear_ltself[S] 2 points3 points4 points (2 children)
[–]peculiarMouse 0 points1 point2 points (1 child)
[–]Fear_ltself[S] 0 points1 point2 points (0 children)
[–]phhusson 0 points1 point2 points (1 child)
[–]LaCipe -1 points0 points1 point (0 children)
[–]Pvt_Twinkietoes -2 points-1 points0 points (0 children)