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.
Metadata
Release files for okf-ingest 0.13.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| okf_ingest-0.13.0.tar.gz | 47.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| okf_ingest-0.13.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 98.3 kB
Release files / okf_ingest-0.13.0.tar.gz
| Download URL | okf_ingest-0.13.0.tar.gz |
|---|---|
| Size | 47.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1d149541314cdde8799d397a103d2ba046661b12543e85f8d4c168e0f2ecc28e
|
|
BLAKE2b-256 checksum How to use checksums |
9b98ad94584e321e9bcc39f23f37f4feb06c45eddaae023f7581d322bf31364d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.10
|
Release files / okf_ingest-0.13.0-py3-none-any.whl
| Download URL | okf_ingest-0.13.0-py3-none-any.whl |
|---|---|
| Size | 51.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
65c305db5092dc5d264dd929661eba29dd65fbfcc54bbde44907c9858283d45a
|
|
BLAKE2b-256 checksum How to use checksums |
03c93fa457e392448e799b377d1ba46062f24e86903b6b4d0afa18ffff3e9c03
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.10
|