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.120.tar.gz (434.1 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.120-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: arke_terminal-0.1.120.tar.gz
  • Upload date:
  • Size: 434.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","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.120.tar.gz
Algorithm Hash digest
SHA256 f65f8d4cf0407d86e7c77b4771e446247d71af1b13d001ea6270ca71f75f8854
MD5 5fe4e731699ab654acbfa0e9d7753483
BLAKE2b-256 dd99e0f6f4877b92f9b09b69c80c78a1437a69bb0c76ca6a535695e436806dd2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: arke_terminal-0.1.120-py3-none-any.whl
  • Upload date:
  • Size: 19.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","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.120-py3-none-any.whl
Algorithm Hash digest
SHA256 6ae2f88ff01a9f083c806da77dc9f8fff3c466893044efeec6e86b622cde3a8b
MD5 08500be98c43e00bb2851ee2759234b8
BLAKE2b-256 3dba0665b12f644a71ae67c979dde8e1945a4222014e9cff25687298746c959d

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