Hyperdimensional Computing SDK and Runtime
Project description
Glyphh Runtime
Hyperdimensional computing runtime for deterministic, explainable AI.
Glyphh encodes natural language into high-dimensional vector representations using Vector Symbolic Architecture (VSA). No LLM in the loop — just math. Same input, same output, every time.
Features
- MCP Server — Model Context Protocol interface for LLM sidecar integration
- GraphQL API — Query knowledge graphs and fact trees with confidence scores
- CLI — Manage models, deploy runtimes, and interact with the Glyphh Hub
- Deterministic — Auditable, reproducible results grounded in cosine similarity
Install
Setup your python environment:
python3 -m venv venv
source venv/bin/activate
Glyphh ships as a single package with different install profiles:
| Profile | Command | What you get |
|---|---|---|
| SDK | pip install glyphh |
Encoder, similarity, CLI, model packaging. Lightweight — just numpy, pyyaml, click, httpx. |
| Runtime | pip install glyphh[runtime] |
Everything in SDK + FastAPI server, SQLAlchemy, pgvector, Alembic, Pydantic. For running the runtime locally. |
| Dev | pip install glyphh[dev] |
Everything in SDK + pytest, hypothesis, black, ruff, mypy. For contributing to Glyphh. |
Most users want either SDK (build and package models) or Runtime (deploy and serve them).
Quick Start
The runtime requires PostgreSQL with pgvector. Pick whichever option fits your setup:
Option 1 — Docker Compose (recommended)
Requires Docker Desktop (or Docker Engine + Compose plugin).
The CLI can scaffold the Docker files for you:
pip install glyphh[runtime]
glyphh docker init
docker pull ghcr.io/glyphh-ai/glyphh-runtime:latest
docker compose up -d
glyphh docker init writes a docker-compose.yml and init.sql into your current directory. The compose file runs PostgreSQL with pgvector and the published runtime image — no build step needed.
Verify it's running:
curl http://localhost:8002/health
Option 2 — Docker (manual)
Run the database and runtime as individual containers:
docker run -d --name glyphh-db \
-e POSTGRES_USER=postgres \
-e POSTGRES_PASSWORD=postgres \
-e POSTGRES_DB=glyphh_runtime \
-p 5432:5432 \
pgvector/pgvector:pg16
docker pull ghcr.io/glyphh-ai/glyphh-runtime:latest
docker run -p 8002:8002 \
-e DATABASE_URL=postgresql+asyncpg://postgres:postgres@host.docker.internal:5432/glyphh_runtime \
ghcr.io/glyphh-ai/glyphh-runtime:latest
Or with an existing database:
docker run -p 8002:8002 \
-e DATABASE_URL=postgresql+asyncpg://user:pass@your-db-host:5432/glyphh \
ghcr.io/glyphh-ai/glyphh-runtime:latest
Option 3 — pip install (bring your own Postgres)
If you already have PostgreSQL with pgvector running:
pip install glyphh[runtime]
export DATABASE_URL=postgresql+asyncpg://postgres:postgres@localhost:5432/glyphh_runtime
glyphh serve
Query a deployed model
glyphh query "What is the refund policy?"
How It Works
- Your LLM sends a natural language query via MCP
- Glyphh encodes it into a high-dimensional vector using stored procedures
- The encoded query resolves against a knowledge graph via GraphQL
- Fact trees with confidence scores are returned to ground the LLM's response
License
Glyphh AI Community License — Copyright (c) 2026 Glyphh AI LLC. All rights reserved.
See LICENSE for full terms. Patent pending (Application No. 63/969,729).
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 glyphh-0.7.0.tar.gz.
File metadata
- Download URL: glyphh-0.7.0.tar.gz
- Upload date:
- Size: 396.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a25d38d334688a7c59f04f638b86569f00f6a3e3e8ff56c2bdf05f209e01d3bb
|
|
| MD5 |
52a060a9d3660a897a15c6dfc648204a
|
|
| BLAKE2b-256 |
7ea88c1813ef34aa8d1b85814acfd71b59a3469141b91c45df084573e2b3fd09
|
Provenance
The following attestation bundles were made for glyphh-0.7.0.tar.gz:
Publisher:
release.yml on glyphh-ai/glyphh-runtime
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
glyphh-0.7.0.tar.gz -
Subject digest:
a25d38d334688a7c59f04f638b86569f00f6a3e3e8ff56c2bdf05f209e01d3bb - Sigstore transparency entry: 1004165234
- Sigstore integration time:
-
Permalink:
glyphh-ai/glyphh-runtime@79e154590af9e5b1ba2ab3ce3952b2cad9a2affa -
Branch / Tag:
refs/tags/v0.7.0 - Owner: https://github.com/glyphh-ai
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@79e154590af9e5b1ba2ab3ce3952b2cad9a2affa -
Trigger Event:
push
-
Statement type:
File details
Details for the file glyphh-0.7.0-py3-none-any.whl.
File metadata
- Download URL: glyphh-0.7.0-py3-none-any.whl
- Upload date:
- Size: 459.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0091dd7d3a6e63add7dbc5f25a89163a109b50106272610efc94f5d3ef1212b8
|
|
| MD5 |
3e1ba5852df41eab300f615761308469
|
|
| BLAKE2b-256 |
14e08e9a1736281ea06d5f22c922d9bf8418110cdb8a1e252280df12031e8951
|
Provenance
The following attestation bundles were made for glyphh-0.7.0-py3-none-any.whl:
Publisher:
release.yml on glyphh-ai/glyphh-runtime
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
glyphh-0.7.0-py3-none-any.whl -
Subject digest:
0091dd7d3a6e63add7dbc5f25a89163a109b50106272610efc94f5d3ef1212b8 - Sigstore transparency entry: 1004165241
- Sigstore integration time:
-
Permalink:
glyphh-ai/glyphh-runtime@79e154590af9e5b1ba2ab3ce3952b2cad9a2affa -
Branch / Tag:
refs/tags/v0.7.0 - Owner: https://github.com/glyphh-ai
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@79e154590af9e5b1ba2ab3ce3952b2cad9a2affa -
Trigger Event:
push
-
Statement type: