Local-first RAG with built-in eval.
Project description
Arke Terminal
Local RAG pipeline with built-in evaluation. Postgres + pgvector for hybrid search, Ollama for embeddings and inference.
Install
pip install arke-terminal
Requires Python 3.12+, Postgres with pgvector, and Ollama.
Copy .env.example to .env and fill in your values:
cp .env.example .env
Usage
arke digest
arke ingest <file.jsonl>
arke ask "query"
arke sweep <fast|medium|thorough> --limit 30
Library
from arke import Arke, Config
cfg = Config(database_url="postgresql://...", api_key="sk-...")
async with Arke(cfg) as m:
await m.ingest("./corpus")
answer = await m.ask("What is X?")
rows = await Arke.sweep(cfg, "medium", limit=30)
Input format
JSONL, one document per line:
{"content": "...", "source": "optional", "created_at": "2026-04-01T12:00:00Z", "metadata": {}}
Only content is required. source falls back to the file stem, created_at to the current time, metadata to {}.
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.113.tar.gz.
File metadata
- Download URL: arke_terminal-0.1.113.tar.gz
- Upload date:
- Size: 77.8 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7f445ee00f87ba535272b3ce205ab4af8b7f3d4acadbc8bea762a1f7ff59d69
|
|
| MD5 |
7566b5c3af19b0b128b8dce2d55921f5
|
|
| BLAKE2b-256 |
128e2354c4695a6abefea34861adb02fad08e2356de69d90a34e6343f4437fc0
|
File details
Details for the file arke_terminal-0.1.113-py3-none-any.whl.
File metadata
- Download URL: arke_terminal-0.1.113-py3-none-any.whl
- Upload date:
- Size: 18.1 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bda3ca5fb48b5963f5e0338afb31c5ca905051263b7e179e138100f50f6d91ff
|
|
| MD5 |
5dcdddd37e917b9feb6215ed529ecb2a
|
|
| BLAKE2b-256 |
e04c9901d2c4f553ae6153ed9e13b5a38dfdc10b423d346035a5803a4343a629
|