Knowledge Engine Python SDK
This package provides a thin Python client and CLI for the Knowledge Engine backend.
Features
- Health check and status calls
- Crawl requests
- Search and RAG queries
- Optional LLM calls via Ollama/OpenAI
Configuration
Environment variables:
KNOWLEDGE_ENGINE_API(default:http://localhost:8080/api/v1)LLM_PROVIDER(ollamaoropenai)LLM_MODELLLM_API_KEYLLM_API_BASE
Usage
from knowledge_engine import KnowledgeEngineClient
client = KnowledgeEngineClient()
status = client.check_status()
print(status)
client.start_crawl("https://go.dev/")
results = client.search("golang memory model")
print(results)
answer = client.ask_backend("What is the Go memory model?")
print(answer)
CLI
After installation:
knowledge-engine crawl <url>knowledge-engine search <query>knowledge-engine ask <query>
Metadata
Release files for knowledge-engine 0.1.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 | |
|---|---|---|---|
| knowledge_engine-0.1.0.tar.gz | 4.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| knowledge_engine-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.8 kB
Release files / knowledge_engine-0.1.0.tar.gz
| Download URL | knowledge_engine-0.1.0.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1e557dec33a7990ee032e3d49d559db11db45e34c6474bdcfe812b332eb18643
|
|
BLAKE2b-256 checksum How to use checksums |
c36019bc9a8c0619a86ab5b5847af8e64e3d926b47d19714d224b28840b029c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.11
|
Release files / knowledge_engine-0.1.0-py3-none-any.whl
| Download URL | knowledge_engine-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5047c06fc9f8f53f92ade684b74d26bd7708a65eeb2442348f488697b372f6e5
|
|
BLAKE2b-256 checksum How to use checksums |
ad36bd01bb73b677875c299e55806cd89c087b5b7273c7daa12881654625ff21
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.11
|