Skip to main content

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

  1. Your LLM sends a natural language query via MCP
  2. Glyphh encodes it into a high-dimensional vector using stored procedures
  3. The encoded query resolves against a knowledge graph via GraphQL
  4. 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

This version

0.9.2

Download files

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

Source Distribution

glyphh-0.9.2.tar.gz (441.0 kB view details)

Uploaded Source

Built Distribution

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

glyphh-0.9.2-py3-none-any.whl (516.9 kB view details)

Uploaded Python 3

File details

Details for the file glyphh-0.9.2.tar.gz.

File metadata

  • Download URL: glyphh-0.9.2.tar.gz
  • Upload date:
  • Size: 441.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for glyphh-0.9.2.tar.gz
Algorithm Hash digest
SHA256 55cb0c36e31986564e3b3e0927fe8d2230d29dc74c70a37d398242332603dc8a
MD5 7e7454f9f0c6686e7a3078895c9a21ed
BLAKE2b-256 551bc10972cfd9ee52edb5bc726b0a1c6126e3e961e9759a2a1475eddc6b8859

See more details on using hashes here.

Provenance

The following attestation bundles were made for glyphh-0.9.2.tar.gz:

Publisher: release.yml on glyphh-ai/glyphh-runtime

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file glyphh-0.9.2-py3-none-any.whl.

File metadata

  • Download URL: glyphh-0.9.2-py3-none-any.whl
  • Upload date:
  • Size: 516.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for glyphh-0.9.2-py3-none-any.whl
Algorithm Hash digest
SHA256 749ca03240e30a6468bfe018ad2af5c9c7aa01c231184c58182d556f1c87ca5b
MD5 5d32ed15164377453570b4013f8170a3
BLAKE2b-256 1ec368a93e0e9f4ee928ba178ab4fbd740a62ec7dc06b516c4f9fdb8a0a7d4f4

See more details on using hashes here.

Provenance

The following attestation bundles were made for glyphh-0.9.2-py3-none-any.whl:

Publisher: release.yml on glyphh-ai/glyphh-runtime

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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