Query your PLATO tile corpus from the command line
Project description
plato-ask
Query your PLATO tile corpus from the command line. No API keys, no network — pure local search over your knowledge tiles.
Install
pip install plato-ask
Usage
# Ask a question
plato-ask "What is priority inversion in RTOS?"
# Search for multiple matches
plato-ask --search "quantum error correction" --top 5
# List domains
plato-ask --domains
# Corpus statistics
plato-ask --stats
# Custom tile directory
plato-ask "How does TCP work?" --tiles-dir /path/to/tiles
How It Works
Builds an inverted index over all .jsonl tile files in the corpus directory. Each tile's question and answer fields are tokenized and indexed. Queries are scored by term overlap with ranking.
Performance: 5447 tiles indexed in <1 second, queries return in <10ms.
Tile Format
Expects JSONL files with tiles in this format:
{"id": "...", "question": "...", "answer": "...", "domain": "...", "difficulty": "advanced"}
Part of PLATO
PLATO is a knowledge framework for AI fleets. See cocapn/fleet-knowledge for the full tile corpus.
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 Distributions
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_ask-0.1.0-py3-none-any.whl.
File metadata
- Download URL: plato_ask-0.1.0-py3-none-any.whl
- Upload date:
- Size: 1.9 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 |
b4aba2bcbd4b9a3480f597afc24982c6ccf570b5beddfd8809a6e7da0a154fa5
|
|
| MD5 |
f8d18892d6f4d1e1b09815007c66a2a6
|
|
| BLAKE2b-256 |
ae7ff441badbb93bcea3082803dd539fda03e5357db0de988f2e34140cfc280e
|