llmgraph icon indicating copy to clipboard operation
llmgraph copied to clipboard

Creating Knowledge Graph on Text File

Open priyammaz opened this issue 1 year ago • 1 comments

I was wondering if it was possible to create a graph on any arbitrary text file instead of Wikipedia pages?

priyammaz avatar Nov 10 '24 15:11 priyammaz

Currently the LLM is used to generate associated concepts that are grounded on Wikipedia pages. So the current implementation doesn't do what you asked.

To extend to any arbitrary text file would be possible, particularly using a RAG approach that pulled in relevant text chunks based on some similarity score.

Another easier approach for small enough text would be to include this information in the actual prompt as background information.

I hope this helps answer your question.

dylanhogg avatar Nov 10 '24 22:11 dylanhogg