GraphRAG Ollama: 100% Local Setup, Keeping your Data Private

  Рет қаралды 16,895

Mervin Praison

Mervin Praison

Күн бұрын

Пікірлер: 87
@anubisai
@anubisai 3 ай бұрын
Great work as usual. Humble. Concise. Helpful. Perfect. 👌
@SullyOrchestration
@SullyOrchestration 3 ай бұрын
Can you please show a way to visualize the knowledge graph with an interactive UI?
@maxs6128
@maxs6128 3 ай бұрын
Hey! Cool video. I actually built a full local solution using Ollama, no need for LM Studio at all. Here's what I did: I created a proxy that translates between OpenAI API embeddings and Ollama's format, both ways. The cool thing is, it works flawlessly for both global and local queries. I'd be happy to share the script with you if you're interested!
@matthewsoltis3383
@matthewsoltis3383 3 ай бұрын
Please.
@MervinPraison
@MervinPraison 3 ай бұрын
Yes please
@maxs6128
@maxs6128 3 ай бұрын
ollama embeddings proxy on git hub
@MatheusVieiradaSilva-g1w
@MatheusVieiradaSilva-g1w 3 ай бұрын
Please.
@maxs6128
@maxs6128 3 ай бұрын
ollama embeddings proxy on git hub
@MattJonesYT
@MattJonesYT 3 ай бұрын
Looking forward to more on this, it is the most interesting cutting edge tech in AI and almost no one else on youtube is talking about it
@nikhielsingh748
@nikhielsingh748 3 ай бұрын
best GenAI KZbinr, I mean it .
@macjonesnz
@macjonesnz 3 ай бұрын
Mervin, Hi from New Zealand, I see that took 20 minutes to index…. what are the specs of your machine?
@d.d.z.
@d.d.z. 3 ай бұрын
Same question. My computer runs Gemma 2 quite slow and I prefer to use Llama3 or Phi. The results will be the same?
@dudicrous
@dudicrous 3 ай бұрын
@@d.d.z. What's your pc spec?
@d.d.z.
@d.d.z. 3 ай бұрын
@@dudicrous Intel core i5 8th gen 8gb RAM I have a HP pavilion 13-an0012la.
@MervinPraison
@MervinPraison 3 ай бұрын
It’s very slow for me too, I use Mac M2 32GB In the video I had to cut that part, because it took 26 mins just for indexing and considering it’s small chunk of data
@yingzhu505
@yingzhu505 2 ай бұрын
Great tutorial! Thank you!
@GeertBaeke
@GeertBaeke 3 ай бұрын
Good stuff. As expected, on a Mac M2, indexing and global queries are quite slow. Local queries are doable because it's usually just one LLM call after the similarity & graph search.
@Gwaboo
@Gwaboo 3 ай бұрын
can you please show or explain how to get the visualization of the data ? looks verry good, and thanks for the tutorial
@Gurdershan
@Gurdershan 3 ай бұрын
I was eagerly waiting for this, big thanks
@ignaciopincheira23
@ignaciopincheira23 3 ай бұрын
It is essential to conduct a thorough preprocessing of the documents before entering them into the RAG. This involves extracting the text, tables, and images, and processing the latter through a vision module. Additionally, it is crucial to maintain content coherence by ensuring that references to tables and images are correctly preserved in the text. Only after this processing should the documents be entered into a LLM.
@girijeshthodupunuri1300
@girijeshthodupunuri1300 3 ай бұрын
This is not all feasible on my computer but I would love move graph rag videos aiming more at how we can get this technology production ready.
@Independent_AI
@Independent_AI 3 ай бұрын
Another great video about GraphRAG, good job.
@debarghyadasgupta1931
@debarghyadasgupta1931 3 ай бұрын
Would you recommend GraphRAG for structured data as well like Postgres or MySql? I am still stuck between LLM SQL agent vs Vectors. I did explored Vanna already and like it. Appreciate your thoughts on this.
@patriktolomeotti
@patriktolomeotti Ай бұрын
Is it possible to perform this queries with LM Studio(or any other interface) instead of using terminal?
@xinzhang3502
@xinzhang3502 3 ай бұрын
So compared to GPTs, his search generation effect will be better?
@nikhielsingh748
@nikhielsingh748 3 ай бұрын
quick question, I already have a folder of embeddings and chunks, can I just pass the documents and embeddings to GraphRAG ?
@BatukeshwarVats
@BatukeshwarVats 2 ай бұрын
Nice and useful video, but still not getting one thing. You made this video around 3 weeks ago, but in april , ollama released some embedding models. Then how we are saying it is not having embedding compatibility?.
@nz6291
@nz6291 2 ай бұрын
Thanks this really helped!
@lesptitsoiseaux
@lesptitsoiseaux 3 ай бұрын
What a perfect video to wake up to after yesterday's video :) I'm starting to think that we're abusing graphRAG here, all of us. You see, and I may be wrong I'm still a n00b here, we are not using semantic chunking and also, for those of us with thousands of files, say transcripts, feeding graphRAG a summary and tags might be good enough for a recommendation engine and if the user wants to dive in, then you use rag but you create a rag for each main collection of documents. So the graph rag may be able to list say what cooking classes you can take much faster and then querying each class that is its own rag for details should be also much faster and overall cheaper? What do you think?
@MervinPraison
@MervinPraison 3 ай бұрын
Basic RAG is fine for basic tasks but this GraphRAG is for advanced and more meaningful response.
@MeinDeutschkurs
@MeinDeutschkurs 3 ай бұрын
A start, great!
@jcalonsoc
@jcalonsoc 3 ай бұрын
Great video! Can you export a CSV file to visualize the graph using an external tool like Gephi?
@sharankumar31
@sharankumar31 3 ай бұрын
Thank you for this tutorial. Very useful..
@alamgirqazi1
@alamgirqazi1 3 ай бұрын
You are amazing 🎉
@siliconberry
@siliconberry 7 күн бұрын
Ollama does provide an embeddings. then why do we need to use LMStudio ?
@SonGoku-pc7jl
@SonGoku-pc7jl 3 ай бұрын
thanks. coming soon local vs. global
@Yannick-ei2tz
@Yannick-ei2tz 3 ай бұрын
Thx for the prez. It is about graph so is it possible to get a grip on the underlying graph db and vizualise it using a ds tool ?
@codelucky
@codelucky 3 ай бұрын
Can you create a video on how to use GraphRAG with the GROQ API? Looks like nobody has done it yet. Thank you.
@changtimwu
@changtimwu 3 ай бұрын
Is LM Studio necessary? I believe OpenWebUI should also suffice, potentially creating a completely open-source graphrag solution.
@MattJonesYT
@MattJonesYT 3 ай бұрын
At 7:10 I believe the reason it's giving errors is the url in the settings file is missing the word embeddings at the end. It probably tested some different urls until it figured it out.
@song8775
@song8775 2 ай бұрын
Hi, how do you fix the issues with running local search using command line?
@mllearning-qc6dt
@mllearning-qc6dt 3 ай бұрын
What is the average query time that you were experiencing with the global/local search?
@Gwaboo
@Gwaboo 3 ай бұрын
how can we use graph rag on data that's in another language? i have hundreds of documents i want to put into a rag but i cant get a good result out of the rag. the only things that come out are generic and often even things that i didn't ask about. do i have to use a German llm and embeddings model and translate all the prompts into German or do i have to translate all the data into English and live with it being in English?
@JV61
@JV61 3 ай бұрын
This is what I was looking for
@eduardoconcepcion4899
@eduardoconcepcion4899 3 ай бұрын
Can't we use nomic-embed-text provided by ollama for the embeddings?
@lemon268
@lemon268 2 ай бұрын
is this completely free? or are there open api calls?
@shiweiluo
@shiweiluo 3 ай бұрын
Why do you read the settings.yaml file by default when you create an index, but mine reads the .env file?
@rockypunk91
@rockypunk91 3 ай бұрын
I want to understand, how can we use it in a actual application. I reality users will upload their documents anytime they want, If I run indexer for different documents seperately it creates a seperate timestamp based folders in output, now how will the graph rag work when we have multiple artifacts? Our do I have to run indexer on entire documents even if one new document is added? and how do we trigger it programitically
@KS-tj6fc
@KS-tj6fc 3 ай бұрын
Do a video that finds the balance of speed (local takes forever) and cost by using DeepSeek-V2, which is only $0.14/million tokens input and $0.28/million tokens output. Once you get your results, I would say that at RAG = 2 the Deepseek would be at least equal to or slightly better than GPT 4o at =1. Then add an additional python step, prompt to take overall points and run limited amounts of tokens via GPT 4o or even Gemini Flash 1.5, which is quite good, for improvement to 1.6~1.7 level outputs at almost “free token costs”.
@mrchongnoi
@mrchongnoi 3 ай бұрын
Good video. Please do work out the error you encountered. Do you have a GPU on your laptop. 20+ minutes makes this unusable for a company with 100s or Thousands of documents.
@bradmiles358
@bradmiles358 3 ай бұрын
Great stuff, id be really interested to see csv rather than txt import as it looks like it might possibly give higgher reasoning by leveraging the structure. Ie better temporal reasoning etc... source_column: "author" # the column containing the source/author of the data text_column: "message" # the column containing the text of the data timestamp_column: "date(yyyyMMddHHmmss)" # optional, the column containing the timestamp of the
@dawn_of_Artificial_Intellect
@dawn_of_Artificial_Intellect 3 ай бұрын
can you use NIM to keep your Data Private?
@mohsenghafari7652
@mohsenghafari7652 3 ай бұрын
Thanks
@mamadousow7323
@mamadousow7323 3 ай бұрын
Didn’t understand the final sentence, running things in llmstudio , what about many pdf documents
@dove8998
@dove8998 3 ай бұрын
You need an OpenAI API Key to run it. It is unfortunatly not 100% local. Is there a way to run it without an OpenAI paid subscription?
@linmichael7935
@linmichael7935 3 ай бұрын
yes you can, just export the "string or some text" for the OpenAI API Key. And then you can run it locally.
@am4_m037
@am4_m037 26 күн бұрын
I got this error during the indexing raise ApiKeyMissingError graphrag.config.errors.ApiKeyMissingError: API Key is required for Completion API. Please set either the OPENAI_API_KEY, GRAPHRAG_API_KEY or GRAPHRAG_LLM_API_KEY environment variable. ⠋ GraphRAG Indexer
@chending5419
@chending5419 2 ай бұрын
After a few tries, my conclusion on graphRAG was that it is buggy when running local, took too long to process - as such that it is not practical to run locally.
@JrTech-rw6wj
@JrTech-rw6wj 3 ай бұрын
can i use gemini model with graph rag ??
@MervinPraison
@MervinPraison 3 ай бұрын
Yes, but not straight out of the box as I can see. You might need to modify the code slightly
@takshitmathur2761
@takshitmathur2761 3 ай бұрын
@@MervinPraison can you make a video on this please.
@PradeepKumar-zy6cd
@PradeepKumar-zy6cd 3 ай бұрын
The problem is LM studio getting error
@ShadowyLane
@ShadowyLane 3 ай бұрын
Something is off. It works with openapi, no problem... But local models and embedding models - no chance. Followed all instructions. EDIT: httpS made me problems for local model, amateur issue. Sorry. It works locally now. Thank you.
@vamsivamsi2903
@vamsivamsi2903 10 күн бұрын
@ShadowyLane How did you make it work for local models can u please tell the solution
@zz-dy7bz
@zz-dy7bz 2 ай бұрын
Are you serious? It's not working at all.
@iham1313
@iham1313 3 ай бұрын
as long as ms does not add other formats besides txt and csv, this graphrag is useless to me and all the business use cases i know and have.
@eggmaster88
@eggmaster88 3 ай бұрын
Why? Can't you transform the data?
@iham1313
@iham1313 3 ай бұрын
@@eggmaster88 can you? including images, diagrams, tables, metadata like page numbers, … please tell me, if there is a good solution
@eggmaster88
@eggmaster88 3 ай бұрын
@@iham1313 for tables you can use .csv from what i know but it seems that you don't really need graph database for your data, more like sql.
@littledaddi3
@littledaddi3 3 ай бұрын
@@iham1313 look up LangChain GraphRag vids on the topic - they show how to do images diagrams tables and metadata.
@zhengwu-jw6fm
@zhengwu-jw6fm 3 ай бұрын
GRAPHRAG_API_KEY= "ollama"?big thanks
@matthewsoltis3383
@matthewsoltis3383 3 ай бұрын
I got it to run without adding any key
@gagnongui78
@gagnongui78 3 ай бұрын
@@matthewsoltis3383 how please?
Easy GraphRAG with Neo4j Visualisation Locally
8:54
Mervin Praison
Рет қаралды 13 М.
EASIEST Way to Fine-Tune a LLM and Use It With Ollama
5:18
warpdotdev
Рет қаралды 69 М.
😜 #aminkavitaminka #aminokka #аминкавитаминка
00:14
Аминка Витаминка
Рет қаралды 726 М.
World‘s Strongest Man VS Apple
01:00
Browney
Рет қаралды 54 МЛН
Watermelon magic box! #shorts by Leisi Crazy
00:20
Leisi Crazy
Рет қаралды 114 МЛН
GraphRAG Advanced: Avoid Overspending with These Tips
12:41
Mervin Praison
Рет қаралды 9 М.
host ALL your AI locally
24:20
NetworkChuck
Рет қаралды 1,2 МЛН
Run A.I. Locally On Your Computer With Ollama
9:35
DistroTube
Рет қаралды 17 М.
Upgrade Your AI Using Web Search - The Ollama Course
8:12
Matt Williams
Рет қаралды 20 М.
Ollama's Newest Release and Model Breakdown
9:00
Matt Williams
Рет қаралды 21 М.
Local GraphRAG with LLaMa 3.1 - LangChain, Ollama & Neo4j
15:01
Coding Crash Courses
Рет қаралды 22 М.
😜 #aminkavitaminka #aminokka #аминкавитаминка
00:14
Аминка Витаминка
Рет қаралды 726 М.