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.9.0.tar.gz (29.5 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.9.0-py3-none-any.whl (33.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: okf_ingest-0.9.0.tar.gz
  • Upload date:
  • Size: 29.5 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.9.0.tar.gz
Algorithm Hash digest
SHA256 601ff4aad276135fa35c644fd233d5de1ad28111c7c3771bd47f5d9aa48fc335
MD5 ba82ebfe31b57e6b256569d1879d6480
BLAKE2b-256 dec9cf19f26e9f812b01cf4ce4a3fc5cf68ea9bb9c8fefb16522396697979776

See more details on using hashes here.

File details

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

File metadata

  • Download URL: okf_ingest-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 33.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.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cddd0a4d39d1926c5f8658713a078cf68eaa31dee052f4e27b649ea70032d517
MD5 936ec2f7666cb7a39a1cea61d8f3223f
BLAKE2b-256 fcc9a1182a8ff843b540e50ef9aa2fb9736cad9e0f6c5761fa35f517e1099c7a

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