Skip to main content

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 (ollama or openai)
  • LLM_MODEL
  • LLM_API_KEY
  • LLM_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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

knowledge_engine-0.1.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

knowledge_engine-0.1.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

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

Hashes for knowledge_engine-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1e557dec33a7990ee032e3d49d559db11db45e34c6474bdcfe812b332eb18643
MD5 c5415e09353e473c57ba26d9d5d9fb7a
BLAKE2b-256 c36019bc9a8c0619a86ab5b5847af8e64e3d926b47d19714d224b28840b029c7

See more details on using hashes here.

File details

Details for the file knowledge_engine-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for knowledge_engine-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5047c06fc9f8f53f92ade684b74d26bd7708a65eeb2442348f488697b372f6e5
MD5 f5b533795a879c5eefc2ddd0c4f14dd8
BLAKE2b-256 ad36bd01bb73b677875c299e55806cd89c087b5b7273c7daa12881654625ff21

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