PLATO similarity bridge — embedding-based tile comparison and semantic room routing
Project description
🌉 Plato Sim Bridge
Embedding-based tile comparison and semantic room routing for PLATO
Computes semantic similarity between knowledge tiles. Routes new tiles to the most relevant PLATO rooms based on content similarity. Detects near-duplicates through embedding comparison.
Install
pip install plato-sim-bridge
Quick Start
from plato_sim_bridge import SimBridge, SemanticRouter
bridge = SimBridge()
sim = bridge.similarity("PLATO rooms store knowledge", "Knowledge tiles live in PLATO rooms")
print(f"Similarity: {sim:.2f}")
router = SemanticRouter(bridge)
router.register_room("architecture", "System design, module structure, API patterns")
router.register_room("mathematics", "Constraint theory, Pythagorean triples, exact arithmetic")
result = router.route("How does the KD-tree snap vectors?")
print(result) # [("architecture", 0.75), ("mathematics", 0.42)]
API
| Class | Purpose |
|---|---|
SimBridge |
Cosine similarity, find_similar, dedup |
EmbeddingProvider |
Pluggable embedding source |
SemanticRouter |
Route content to best-matching room |
Part of Cocapn · Agent Infrastructure
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file plato_sim_bridge-0.1.1.tar.gz.
File metadata
- Download URL: plato_sim_bridge-0.1.1.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc0cee8e19f79279ad94d0f37d74eb6d76ad22948264f0b581adeb4404e86e6d
|
|
| MD5 |
a7baf2f4e3365ee8d2957fa1130604b6
|
|
| BLAKE2b-256 |
5f671e310d0bf5e9cbf49e0b4518afb0901fcf8984fa91a4d893b9ca3f100900
|
File details
Details for the file plato_sim_bridge-0.1.1-py3-none-any.whl.
File metadata
- Download URL: plato_sim_bridge-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
927adefc7c382bab044914e9fc6a015777fffe1bbbb7f3214b483bd0c1949150
|
|
| MD5 |
0926c048e016ffba1ac09abab10f7eeb
|
|
| BLAKE2b-256 |
1f18178c1921f6746e8e6e25e60a2eb6cd2fcbeed2caa0a9c913db33d09338aa
|