Skip to main content

Official Python SDK for the AI Semantic Engine

Project description

AI Semantic Engine Python SDK

The official Python client for the AI Semantic Engine.

Installation

pip install ai_semantic_engine

Usage

from ai_semantic_engine.client import AiSemanticEngineClient

# Initialize the client
client = AiSemanticEngineClient(base_url="http://localhost:8200", api_key="YOUR_API_KEY")

# 1. Embed Text
embeddings = client.embed("Hello world", model="fast")

# 2. Compute Similarity
score = client.similarity("Apple", "Orange")
print(f"Similarity: {score}%")

# 3. Store Knowledge
client.store_item(text="Machine learning is fascinating.", metadata={"topic": "AI", "source": "wiki"})

# 4. Search Knowledge
results = client.search(query="Tell me about AI", top_k=3, filters={"topic": "AI"})
for r in results:
    print(r["score"], r["text"])

Endpoints Supported

  • embed and embed-batch
  • similarity
  • store_item (items endpoint)
  • search
  • detect_duplicates (detect-duplicates endpoint)

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

ai_semantic_engine-1.0.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

ai_semantic_engine-1.0.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file ai_semantic_engine-1.0.0.tar.gz.

File metadata

  • Download URL: ai_semantic_engine-1.0.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for ai_semantic_engine-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2850a02eb8f5585a31d0de927e9d2053aa292617c760a270a084bf401dda5860
MD5 6954346abb652367bd3f4a5207c7654c
BLAKE2b-256 223b94661089b8c4004834fcacafc46bac44adba7516ab4d8872adfe3f1f8f72

See more details on using hashes here.

File details

Details for the file ai_semantic_engine-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ai_semantic_engine-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cd3aa7411bdd435cc67500fac0ed361726eaccb77b6e02e7b84a2d35d518c8a3
MD5 359c8523149cc70be78cce6c11344225
BLAKE2b-256 9c9afb0b3f6ae6b4da4f97cbd9cd9a2617273ed8f10903a23d08aa6cbfee545a

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