Python SDK for the Knowledge Engine backend
Project description
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>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file knowledge_engine-0.1.0.tar.gz.
File metadata
- Download URL: knowledge_engine-0.1.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e557dec33a7990ee032e3d49d559db11db45e34c6474bdcfe812b332eb18643
|
|
| MD5 |
c5415e09353e473c57ba26d9d5d9fb7a
|
|
| BLAKE2b-256 |
c36019bc9a8c0619a86ab5b5847af8e64e3d926b47d19714d224b28840b029c7
|
File details
Details for the file knowledge_engine-0.1.0-py3-none-any.whl.
File metadata
- Download URL: knowledge_engine-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5047c06fc9f8f53f92ade684b74d26bd7708a65eeb2442348f488697b372f6e5
|
|
| MD5 |
f5b533795a879c5eefc2ddd0c4f14dd8
|
|
| BLAKE2b-256 |
ad36bd01bb73b677875c299e55806cd89c087b5b7273c7daa12881654625ff21
|