Skip to main content

Deterministic, agent-free ingestion tool for Open Knowledge Format (OKF) bundles — validate, load into a portable DuckDB catalog, render, graph, and semantically search, from R or Python.

Project description

okf (Python binding)

Python binding of okf-ingest — a unified ingestion tool for Open Knowledge Format (OKF) bundles. Validate a bundle, load it into a portable DuckDB catalog, and semantically search it.

pip install okf-ingest
okf validate ./bundle
okf ingest   ./bundle --db catalog.duckdb
okf embed    catalog.duckdb            # uses local Ollama nomic-embed-text by default
okf rag      catalog.duckdb --query "how is revenue computed?" -k 5
import okf
con, summary = okf.ingest("./bundle", db_path="catalog.duckdb")
okf.embed(con)                         # pluggable embedder
okf.rag_search(con, "revenue", k=5)

The catalog format is shared with the R binding (okf on CRAN-style install), so you can ingest/embed in one language and query from the other. See the project README and docs/ for the full spec-conformance notes and architecture.

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

okf_ingest-0.5.1.tar.gz (24.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

okf_ingest-0.5.1-py3-none-any.whl (26.9 kB view details)

Uploaded Python 3

File details

Details for the file okf_ingest-0.5.1.tar.gz.

File metadata

  • Download URL: okf_ingest-0.5.1.tar.gz
  • Upload date:
  • Size: 24.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for okf_ingest-0.5.1.tar.gz
Algorithm Hash digest
SHA256 358e3fbf0a3b8182c83290d311b2838e59f2d4fbc83652f2678b290b88f3c11a
MD5 532510172b5122af05f59ed273ed0eff
BLAKE2b-256 701608af8cb9657f1ab1ce675e2ef6db6db4f2b118719ea4c317c7b3b6fde648

See more details on using hashes here.

File details

Details for the file okf_ingest-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: okf_ingest-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 26.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for okf_ingest-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 083106936d476585acbafb8b2028a95947155d4b8a7dd5598e0941250867274e
MD5 c0027ba30c799b933a39f5498a43935f
BLAKE2b-256 f7757b20d0b327d98fd64526b07e03831310f88ce05ef15734576f8060ab165e

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