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.111.tar.gz (77.8 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.111-py3-none-any.whl (18.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: arke_terminal-0.1.111.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

Hashes for arke_terminal-0.1.111.tar.gz
Algorithm Hash digest
SHA256 789efdbffd21a252cf018baf24ba4da7c081efa0700dd54fa3238d3de8b3c435
MD5 17c506ec2ac3e1681d468d5a8b997d0b
BLAKE2b-256 071af60fc259bccdef41329a965c7add09992288f5480f1a7f2d46545cd95f59

See more details on using hashes here.

File details

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

File metadata

  • Download URL: arke_terminal-0.1.111-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

Hashes for arke_terminal-0.1.111-py3-none-any.whl
Algorithm Hash digest
SHA256 952d8f7d365537c2601d0d46e1e54ec1258925356bea633a0354780bbe745601
MD5 2bde20351df6ba61cc2741183872b8a4
BLAKE2b-256 346f7481573b197ea17d226af5c509130e78b58ddd29bcfb9b96fe49a2cb2f40

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