Nearest-neighbor tile search — keyword overlap, domain matching, composite ranking
Project description
plato-tile-search
Nearest-neighbor tile search — keyword overlap, domain matching, composite ranking.
Part of the PLATO framework — deterministic AI knowledge management through tile-based architecture.
Installation
pip install plato-tile-search
Usage
from plato_tile_search import TileSearcher
searcher = TileSearcher(tiles=[
{"content": "Pythagorean triples snap to exact coordinates", "domain": "constraint-theory"},
{"content": "Deadband Protocol enforces P0 before P1 before P2", "domain": "governance"},
])
results = searcher.search("pythagorean snapping")
for r in results:
print(f"[{r.match_type}] {r.score:.2f}: {r.tile['content'][:50]}")
Match Types
| Type | Score | Description |
|---|---|---|
| Exact | 1.0 | Full content match |
| Keyword | Jaccard | Token-level overlap |
| Domain | 0.3 | Same domain as query |
| Fuzzy | 0-0.5 | Substring and bigram overlap |
Zero external dependencies. Compatible with Python 3.8+.
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_tile_search-0.1.0.tar.gz.
File metadata
- Download URL: plato_tile_search-0.1.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45fd3e954b7fd608bc40238cc1c303a4131d52b714d78becf11c5c050625621d
|
|
| MD5 |
be0b25145eabf624be9783af1aa66ab4
|
|
| BLAKE2b-256 |
b82743e4801d5afce1965a31eade30286130aa055fa7faa02635f853abaa7d76
|
File details
Details for the file plato_tile_search-0.1.0-py3-none-any.whl.
File metadata
- Download URL: plato_tile_search-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.1 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 |
12fc5ededbf9ec30f3f34469c5db4e96efb7646181a1050924eb3e9a13981337
|
|
| MD5 |
5b211df2d26be76e1118467c43a9c1e9
|
|
| BLAKE2b-256 |
5111e7ba4be9a33193a6f4a2d8f87b0a67830baf5d9c8ecf2395d89332c09c9d
|