Find answers from the community

Updated 3 months ago

Organizing data into separate

Organizing data into separate communities in neo4j with llamaindex


I'm working with Neo4j property graphs and using llamaindex, but I have a specific use case that I need help with. Most tutorials show how to load documents at load time, but I need to insert documents dynamically at runtime.

Also, I want to organize the data into different "tables" (I think they're called communities in Neo4j?), so I can store related entities and relationships in separate areas. For example, I want a "marketing" place, an "academic/graduation" place, and so on. Basically, different spaces for different types of graphs.
L
A
d
10 comments
You can insert at runtime with index.insert(document) or index.insert_nodes() no?
As for communities/tables, I don't really know. I think in neo4j you need to specify a new database ? I'm not really sure
Your code looks like you are already using insert, so it should be fine?
Hi, Logan. Yes, I think it will be fine. The only issue that is not quite clear for me is the concept of separating different kind of data in different kind of groups. In SQL we have tables, in graph stores idk yet. Maybe if I just place everything inside the same "place" as long as the entities and relationships don't collide I think I'll be fine, right? Since the documents doesn't share the same entities and relationships, they will be separated in the space I guess
e.g, in some vector databases we have collections
Yea tbh I'm not an expert in graph dbs, but, that intuition makes sense to me!
All right I'll experiment this
Thanks in advance πŸ‘πŸΌ
Hello @Arthur , in Neo4j you can create different databases. Look this url for understand how to do it.
https://neo4j.com/docs/operations-manual/current/database-administration/standard-databases/create-databases/

Then creating neo4j object, you should specify the database name with the parameter database
Hi! Thanks a lot! I'll take a look
Add a reply
Sign up and join the conversation on Discord