graphrag icon indicating copy to clipboard operation
graphrag copied to clipboard

How can we create RAG dynamicly?

Open SP4595 opened this issue 1 year ago • 6 comments

I am currently facing a challenge with adding new text to RAG. My current approach involves reinitializing the entire RAG, which is slow.

Please provide guidance or suggestions on efficiently adding new text to RAG without requiring complete reinitialization.

SP4595 avatar Jul 08 '24 10:07 SP4595

hi . are you using it with openai ? what is the indexing cost for this ?

hemangjoshi37a avatar Jul 08 '24 10:07 hemangjoshi37a

I am currently facing a challenge with adding new text to RAG. My current approach involves reinitializing the entire RAG, which is slow.

Please provide guidance or suggestions on efficiently adding new text to RAG without requiring complete reinitialization.

I have same requirement , I want to use this for coding in which everytime i make small changes I have to reindex whole codebase which is very slow . if you find anything please let me know.

hemangjoshi37a avatar Jul 08 '24 10:07 hemangjoshi37a

hi . are you using it with openai ? what is the indexing cost for this ?

Sorry, I use the Ollama & llama3-8b. But some YouTubers said openai api will cost a lot.

SP4595 avatar Jul 08 '24 10:07 SP4595

If you just add a new file to the input folder it will incrementally index

kdawgwilk avatar Jul 08 '24 19:07 kdawgwilk

If anyone has it running on ollama please let me know how to set it up.

hemangjoshi37a avatar Jul 12 '24 09:07 hemangjoshi37a

If you know how to dynamically add text without generating a full index again, please let me know. Thank you

Janice0721 avatar Jul 18 '24 06:07 Janice0721

If you add new content to the input and do not change your indexing parameters, you should get the benefit of the cache on many of the requests. Changing parameters changes the cache key though, causing a complete reindex.

There are some steps in the pipeline that will re-run due to changed inputs any time you add content.

natoverse avatar Jul 23 '24 00:07 natoverse

If anyone has achieved or can suggest for this . In this we want to continuously index the updated code base in the HippoRAG index and query on the updated index and then make code changes and continuously do so. Here consider that we want to do this offline with ollama type models only and dont want to use OpenAI or Claude .

If anyone can suggest how can i do this ?

hemangjoshi37a avatar Jul 24 '24 09:07 hemangjoshi37a

Consolidating index update requests with #741

natoverse avatar Jul 26 '24 20:07 natoverse