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.163.tar.gz (63.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.163-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: arke_terminal-0.1.163.tar.gz
  • Upload date:
  • Size: 63.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.163.tar.gz
Algorithm Hash digest
SHA256 b7d8568a77ec4b7ccd3ea7633c8b04cc91d34516460fe543ff2fe60a0e412a0e
MD5 1c39144768504c6a44f8a8b1e22352a8
BLAKE2b-256 3a388b6ecc8531f0fad4cdd2c451faf76f2db1b3ddc81b4ec2385ccd1d8148f9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: arke_terminal-0.1.163-py3-none-any.whl
  • Upload date:
  • Size: 19.9 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.163-py3-none-any.whl
Algorithm Hash digest
SHA256 589616342510e79c28d51e485b97e4b8df3625bf78aa90aed2878bf0cb0250c3
MD5 7243c01e5438d2cdc00a64e1199a2668
BLAKE2b-256 6e2f2a1104b1dd9692f640edbe6a0606327dca663fdfd25c2ad638a45fb9fe99

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