neo4j-labs / llm-graph-builder

Neo4j graph construction from unstructured data using LLMs
https://neo4j.com/labs/genai-ecosystem/llm-graph-builder/
Apache License 2.0
1.95k stars 274 forks source link

how to use llm-graph-builder as an api #545

Open seshubonam opened 1 month ago

seshubonam commented 1 month ago

https://neo4j.com/labs/genai-ecosystem/llm-graph-builder/

the ui is cool, and to use this as a tool in agent frameworks, im trying to find a way to use it as an api.

to have all the functionality of the https://llm-graph-builder.neo4jlabs.com, as an api

any help? thanks!

ais-qianhao-liu commented 1 month ago

You can host the backend your self and all availabel api endpoints are in this file https://github.com/neo4j-labs/llm-graph-builder/blob/main/backend/score.py

seshubonam commented 1 month ago

also do you have an idea whats the difference between using llm-graph-builder vs the graphRAG accelerator from microsoft for graphRAG (https://github.com/Azure-Samples/graphrag-accelerator)

I prefer neo4j for making use of graph databases extensively in my project on top of the graphRAG. so its an easy choice for me if both are essentially providing the similar graph powered RAG feature for llms.

its hard to find at which layer neo4j adds value to end user when i.plementing graphRAG following the microsoft method.

if you can shed some light, will be helpful. thanks!

ais-qianhao-liu commented 1 month ago

Sorry I am not familiar with MS graphRAG accelerator, but as far as I know you can do some extra analysis with Neo4j GDS library and also it looks like you probably have to use MS Azure cloud with MS graphRAG accelerator together.

jayanth-002 commented 1 week ago

@seshubonam, for more details about integrating GraphRAG with NEo4j, pls refer to the blog: https://neo4j.com/developer-blog/microsoft-graphrag-neo4j/

seshubonam commented 1 week ago

thanks