Skip to main content

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.

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.12.3.tar.gz (45.2 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.12.3-py3-none-any.whl (49.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: okf_ingest-0.12.3.tar.gz
  • Upload date:
  • Size: 45.2 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.12.3.tar.gz
Algorithm Hash digest
SHA256 f916b7c7ef0a439eab22792b4fec25ccc1c5ad7010eb99ecb7430d81b986635e
MD5 d58f274ece4e174b0206d5c1db4cac63
BLAKE2b-256 69338efa4ee632d27173fe52685234516c8e7afaf97dc408d24b64e168cea420

See more details on using hashes here.

File details

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

File metadata

  • Download URL: okf_ingest-0.12.3-py3-none-any.whl
  • Upload date:
  • Size: 49.1 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.12.3-py3-none-any.whl
Algorithm Hash digest
SHA256 758c08094a6d0296f0ecd856acb40a766aa9aa3138f23e69ea01209856eb80f5
MD5 764a7fb951279feac3c21e39340aebce
BLAKE2b-256 fcadbf5515d2500d8b4cd16424cbc8ca8bd1e21715f01737b7ec2f1c2dab4ad9

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.12.3 This release

2 files

0.12.2

2 files

0.12.1

2 files

0.12.0

2 files

0.11.0

2 files

0.10.0

2 files

0.9.0

2 files

0.7.0

2 files

0.6.0

2 files

0.5.2

2 files

0.5.1

2 files

0.5.0

2 files

0.4.0

2 files

0.2.0

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page