Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 0.11.0 instead.

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.7.0.tar.gz (26.7 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.7.0-py3-none-any.whl (30.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: okf_ingest-0.7.0.tar.gz
  • Upload date:
  • Size: 26.7 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.7.0.tar.gz
Algorithm Hash digest
SHA256 580f5a30fb2cda30aa84c166d0ac00faf398ff11661f712813a594a49a513c64
MD5 ffe23f28c072820283dc724923d30f00
BLAKE2b-256 decb9478ac1780c7588334e15ad3b8a20bf024279eec950c5dcdb24f1d9da7a4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: okf_ingest-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 30.0 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.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c33387fd8389ca1a67c5ed04448c8256c13d49105fa93ee5b4b50de870be9a5a
MD5 028c07b6573d3cc926ef0cd1d150b065
BLAKE2b-256 06e581c2bba95b3b05c37a9449ce38d34dc3dff741e9906f518cafed38d7a577

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 Sentry Error logging StatusPage Status page