Skip to main content

Unified ingestion tool for Open Knowledge Format (OKF) bundles — validate, load into a portable DuckDB catalog, and semantically search.

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.2.0.tar.gz (11.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.2.0-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: okf_ingest-0.2.0.tar.gz
  • Upload date:
  • Size: 11.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.2.0.tar.gz
Algorithm Hash digest
SHA256 583c013f1b9291439a2078bcd7ca7e278583eed616e3b0ee889f44c962e19be0
MD5 e6a92c1c8484cccf76f510c6a3a898ea
BLAKE2b-256 43298d55afc705fdd64351b62ff2f50f6facc3ea12970d6251f765ba2902b407

See more details on using hashes here.

File details

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

File metadata

  • Download URL: okf_ingest-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 12.4 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 90ac325322122b05377c8683300d5c92adfedb456393d21773b00d4802cf8298
MD5 4a5b27f0a5fa3176106e493c838b62ab
BLAKE2b-256 368017228b3efa48f03693b152b3153ebfbcbd8d41c78750a84a59ec91a8a8aa

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