Skip to main content

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


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.114.tar.gz (77.4 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.114-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: arke_terminal-0.1.114.tar.gz
  • Upload date:
  • Size: 77.4 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.114.tar.gz
Algorithm Hash digest
SHA256 fcf6098ca5fa93575c10163c157a4f209d04eb4248b35af19a2756287e765691
MD5 c8a0fa9a60747826a91e2763b3b89568
BLAKE2b-256 95160391f425c1fe4e6fef3bc64ae8df34e575c9ff06f418bc9fbc11677a28a3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: arke_terminal-0.1.114-py3-none-any.whl
  • Upload date:
  • Size: 18.5 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.114-py3-none-any.whl
Algorithm Hash digest
SHA256 fb9b7176adf167e395544fa1a74ea6f6fc4c67f3a3d204442c899ab589cf38b4
MD5 f96f66bb9cd49e277daed7eb1ddff98b
BLAKE2b-256 7e957b284c5d951165a68f9e1ae40fc7dc29d3910373fb2770050d82810336b9

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