Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

plato_sim_bridge-0.1.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

plato_sim_bridge-0.1.1-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

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

Hashes for plato_sim_bridge-0.1.1.tar.gz
Algorithm Hash digest
SHA256 dc0cee8e19f79279ad94d0f37d74eb6d76ad22948264f0b581adeb4404e86e6d
MD5 a7baf2f4e3365ee8d2957fa1130604b6
BLAKE2b-256 5f671e310d0bf5e9cbf49e0b4518afb0901fcf8984fa91a4d893b9ca3f100900

See more details on using hashes here.

File details

Details for the file plato_sim_bridge-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for plato_sim_bridge-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 927adefc7c382bab044914e9fc6a015777fffe1bbbb7f3214b483bd0c1949150
MD5 0926c048e016ffba1ac09abab10f7eeb
BLAKE2b-256 1f18178c1921f6746e8e6e25e60a2eb6cd2fcbeed2caa0a9c913db33d09338aa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page