Local-first RAG for legal teams.
Project description
Arke Terminal
AI document search for legal teams. Privilege-safe, on-premise.
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
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 arke_terminal-0.1.192.tar.gz.
File metadata
- Download URL: arke_terminal-0.1.192.tar.gz
- Upload date:
- Size: 119.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f93ca6c7a4ab010220dcea0e667c153f1b436776882b5eb6a79f47ab4f396725
|
|
| MD5 |
2c11558910f816c49fcb0ffc4f35b50f
|
|
| BLAKE2b-256 |
afbc8f83c467aed29058cdb6a131bf69a902b4f95481961386240ce2ceebad0a
|
File details
Details for the file arke_terminal-0.1.192-py3-none-any.whl.
File metadata
- Download URL: arke_terminal-0.1.192-py3-none-any.whl
- Upload date:
- Size: 30.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a23a4aea5040c79c0bcc8ba27ab9adb97186e4282d727c055540395b4345450
|
|
| MD5 |
79982d3484b70181c0d37d7226dee605
|
|
| BLAKE2b-256 |
d764d1884b07899ac171a9d9e72ef4de7e9875bcab6cd533e8542849bfa2f5a9
|