Skip to main content

Local-first RAG with built-in eval.

Project description

Arke Terminal

AI document search for legal teams. Privilege-safe, on-premise.

Dashboard

Cloud AI breaks attorney-client privilege (United States v. Heppner, Hamid v SSHD). Arke runs on your server. Your documents never leave your network.

Hybrid search (semantic + keyword) over your documents. Ask questions, get answers with source references. Click a source to open it in your default application.

Quick start (Docker)

docker compose up --build

Opens dashboard at localhost:8000. Pulls models automatically on first run.

Quick start (local)

Requires Python 3.12+, Postgres with pgvector, and Ollama.

pip install arke-terminal
cp .env.example .env   # fill in DATABASE_URL and DATA_PATH
arke ingest ./your-documents
arke serve

CLI

arke ingest <path>                       # index documents
arke ask "query"                         # search from terminal
arke serve                               # start dashboard + API
arke sweep <fast|medium|thorough> -l 30  # run eval benchmark

Library

from arke import Arke, Config

cfg = Config(database_url="postgresql://...", data_path="./docs")

async with Arke(cfg) as engine:
    await engine.ingest("./docs")
    result = await engine.ask("What are the termination clauses?")
    print(result.answer)
    for hit in result.hits:
        print(hit.chunk.source, hit.similarity)

Input formats

Plain text (.txt) — loaded directly, source = relative path from root.

JSONL — one document per line:

{"content": "...", "source": "optional", "created_at": "2026-04-01T12:00:00Z", "metadata": {}}

Only content is required.

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

arke_terminal-0.1.144.tar.gz (402.3 kB view details)

Uploaded Source

Built Distribution

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

arke_terminal-0.1.144-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

Details for the file arke_terminal-0.1.144.tar.gz.

File metadata

  • Download URL: arke_terminal-0.1.144.tar.gz
  • Upload date:
  • Size: 402.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for arke_terminal-0.1.144.tar.gz
Algorithm Hash digest
SHA256 c379233b50a8237c2d3b7d58f7a4cff738d2f7084685c630b6bff8e039c3fe1b
MD5 d085e39d932cb16a4903418c7f051f0b
BLAKE2b-256 8b985cc1ede9371bc873e4e2e547933161f55c0cf23465221bb1223a8eecee64

See more details on using hashes here.

File details

Details for the file arke_terminal-0.1.144-py3-none-any.whl.

File metadata

  • Download URL: arke_terminal-0.1.144-py3-none-any.whl
  • Upload date:
  • Size: 19.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for arke_terminal-0.1.144-py3-none-any.whl
Algorithm Hash digest
SHA256 4bea4439dd2525b9577f47b1ddfeeb541f391954d41a82ecbce96b3e51570422
MD5 b68750c4f3ea37fd52ff124c1a7ef924
BLAKE2b-256 ae2ddde82ea5e518fff251353f503faa1e8ee8b31d463685255a3ac7e184ba60

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