Semantic routing through RAG to create a P2P social network or marketplace

https://github.com/Helldez/Resonance


TEXT COPIED FROM REDDIT!

Hi everyone,

I want to share the idea I had for a hackaton.

Starting from the problem:

For ~30 years, discovery (of information or of people) has been mediated by a central index: search engines, recommenders....

Ranking is computed server-side, under rules the user can't inspect (think of Instagram or TikTok feed)

The idea to create a feed for a P2P network: convert messages into meaningful concepts through embeddings:

If each device can (a) run a competent embedding model locally and (b) reach other devices peer-to-peer, then relevance (semantic match) no longer needs a central index. It can be computed at the edge, by semantic distance, with no privileged ranking party.

In order to test, I developed a working prototype to pressure-test the idea rather than simulate it.

Each post is encoded into a embedding by a model running on the device (EmbeddingGemma-300M). A lightweight signed announcement (author + embedding) gossips peer-to-peer across a shared room; full bodies are pulled only for the bounded set a node actually admits. Each device ranks incoming posts against its own posts by cosine similarity and keeps a bounded local inbox.

There is no server, no account, no global ranking, the address space is meaning

Why could be potentially the basis for the agentic era?

The same substrate I presented lets AI agents discover each other: an agent publishes a need or an offer as an embedding, and agents whose profiles are semantically close respond.

The experiment it's fully open source (Apache-2.0) code, the complete threat model, and the architecture docs are all public.

Ordinal reddit post. https://www.reddit.com/r/ipfs/comments/1ucvu5e/semantic_routing_through_rag_to_create_a_p2p/

0 points · 6 comments · view on lemmy.world

6 Comments

waldfee@feddit.org · 5 pts · 84d (1 reply)

I'm guessing this is a vibe coder based on how this post isn't even coherent (at least to me)

waldfee@feddit.org · 4 pts · 84d

Uh, I'm right:

AGENTS.md

CLAUDE.md

breadsmasher@lemmy.world · 2 pts · 84d (3 replies)

did you simply reinvent DHT with some bullshit “agentic ai” layered on top?

https://en.wikipedia.org/wiki/Distributed_hash_table?wprov=sfti1

CAVOK@lemmy.world · 0 pts · 84d (2 replies)

I'm not the author, I just brought the news. 😁

breadsmasher@lemmy.world · 4 pts · 84d (1 reply)

then why is the entire post in the first person?

CAVOK@lemmy.world · 1 pts · 84d

Copy/paste.

But you're right, I could have made it clearer that I'm not the author.