r/AIMemory • • Oct 12 '26

Open Question Techniques to build semantically graph

I'm looking to build semantic graph for my requirements.

I went through various resources in how to build semantic graph using embeddings models, especially from neo4j and surrealdb blogs but no one states the actual mechanics behind semantic graph construction.

It may be IP of each provider of such graphs. Not sure.

I'm looking for theoretical references and hopefully if there exists any practical examples on how to build on the general approach to building semantic graphs using embedding models so that I can learn.

Any help or advice is appreciated.

5 Upvotes

6 comments sorted by

1

u/techtheist_ggl Oct 13 '26

There's a big question about dynamic structure or static, like, always predefined type of nodes and types on connections. For my memory system i decided to let user and ai redefine ontology, but it's fixed.

In the end it worth it, agent got information about connected nodes where it's needed, can traverse links, NLI can find transitive contradictions, and some node types appears in brief.

1

u/Historical_Ad4384 Oct 13 '26

What is dynamic structure?

How do users build ontology with AI?

How does agent get information about the connected nodes?

1

u/techtheist_ggl Oct 13 '26

Dynamic vs static ontology - for example, sometimes it could be handy if agent can write anything in "type" field, it can make sense, if memory nodes are the same, that type is something like a tag, ai like tags. Otherwise, if you have a fixed structure, it might not fit the user purpose, agent will do mistakes on write, and you need to teach an agent to use it.

In my ai memory system there's a selection of presets, and it's possible to rename/add new types.

Agent can do it too, which can be helpful at start. I decided not to put that into mcp, but there's a description ai can find and apply changes via http api.

And about information about connected nodes - so, there's a few ways for agent to discover a memory note - first, agent recieves brief, which contains lists of notes and things - like, recent added, review queue, current score. Then, agent can search in the memory system, if will get a list with cut memories. Then it can read a note with id, where it will see full description, and connections - what kind of connection, and a short cut content.
There's actually more, example - if ai tried to add a memory note, it get scored by similarity with existing notes and archived notes - and if it's similar to archived note, it's contradiction, one kind of. This action will warn the agent writer and add connection between conflicting notes, signaling about this problem, which ends up in the review queue.

What connections are really gives - they explain the relations, like why and what, which gives richer, related context.

1

u/MapleeMan 24d ago

You probably want to start from ontology and undestanding the semantic graph you want to build, so look your data and try to build an ontology of that. We are doing that in Memgraph Zero as a product -> https://memgraph.com/docs/memgraph-zero

But OFC, general advice is to start from the ontology, this helps a lot.

1

u/Ill-Organization-38 Oct 19 '26

so I had a blink model that I trained English semantically rather than do large data sets so it’s still blank. I took the opportunity to turn it fixed weights into a fractal