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-pythonsdk

Usage

from ai_semantic_engine.client import AiSemanticEngineClient

# Initialize the client
client = AiSemanticEngineClient(base_url="https://ai.quizcore.org", 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_pythonsdk-1.0.2.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_pythonsdk-1.0.2-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file ai_semantic_engine_pythonsdk-1.0.2.tar.gz.

File metadata

File hashes

Hashes for ai_semantic_engine_pythonsdk-1.0.2.tar.gz
Algorithm Hash digest
SHA256 396ac3159485475bd7a20a5c6b778c5b7fde4a938678a69c52659f854d37cd6a
MD5 e827d6574b8a833a043ee05669756a24
BLAKE2b-256 f42f8a475bc1018a986cbf05c99846dd710741097094244fd12bf9ac99f2a634

See more details on using hashes here.

File details

Details for the file ai_semantic_engine_pythonsdk-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for ai_semantic_engine_pythonsdk-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6eed41a8d1de541bf7fa3823f7a74812509f43ac82bcbccd31f6cef7a6b53da9
MD5 1ecc6969ff64343971db20fda2c20a8d
BLAKE2b-256 d932b55b78f9b822fb65ec423d86f422e609a8eff6a5b1050708d3be6357f56c

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