Skip to main content

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)

Metadata

Release files for ai-semantic-engine 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ai-semantic-engine 1.0.0
File Size Uploaded Provenance Actions
ai_semantic_engine-1.0.0.tar.gz 3.4 kB Without provenance Details for ai_semantic_engine-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ai-semantic-engine 1.0.0
File Interpreter ABI Platform Actions
ai_semantic_engine-1.0.0-py3-none-any.whl Python 3 none any Details for ai_semantic_engine-1.0.0-py3-none-any.whl

Total release size: 7.3 kB

Release files / ai_semantic_engine-1.0.0.tar.gz

Download URL ai_semantic_engine-1.0.0.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
2850a02eb8f5585a31d0de927e9d2053aa292617c760a270a084bf401dda5860
BLAKE2b-256 checksum
How to use checksums
223b94661089b8c4004834fcacafc46bac44adba7516ab4d8872adfe3f1f8f72
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / ai_semantic_engine-1.0.0-py3-none-any.whl

Download URL ai_semantic_engine-1.0.0-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cd3aa7411bdd435cc67500fac0ed361726eaccb77b6e02e7b84a2d35d518c8a3
BLAKE2b-256 checksum
How to use checksums
9c9afb0b3f6ae6b4da4f97cbd9cd9a2617273ed8f10903a23d08aa6cbfee545a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Security for ai-semantic-engine 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page