Use OKF
Query OKF
Link OKF sources to an engine and read them with the same query and retrieve calls you already use.
There's no separate OKF API to learn. Link OKF sources to an engine, and lynk.query and lynk.retrieve search them along with any vector sources.
Link OKF sources
- Find the source. In Sources, open the OKF container. A
Dockwrite tocontainer="okf"appears as an API/SDK Feed source. - Link it. Open the engine in Knowledge Engines, go to its Sources tab, and add the source.
OKF sources have no dimension, so you can link them to any engine.
Ask a question
from docklee import Lynk
lynk = Lynk(engine_id="your-engine-id")
result = lynk.query_sync("Who owns the report that the orders table feeds into?")
print(result.answer)The engine follows the links from the orders table to the revenue metric, the report, and its owner, and writes the answer from those concepts.
Retrieve OKF context
lynk.retrieve returns OKF results as chunks, merged with vector chunks in one ranked list:
chunks = lynk.retrieve_sync("How does the orders table relate to revenue?", top_k=5)Ask questions OKF answers well
| Instead of | Ask |
|---|---|
"orders revenue" | "How does the orders table feed revenue?" |
"finance report" | "Who owns the monthly revenue report?" |
"supplier change" | "Which products depend on this supplier?" |
If OKF retrieval can't run for a question, the engine still answers from its vector sources. OKF adds to an answer and never blocks it.
Next steps
You're answering from OKF. Take your bundle with you next.