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
embedandembed-batchsimilaritystore_item(items endpoint)searchdetect_duplicates(detect-duplicates endpoint)
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2850a02eb8f5585a31d0de927e9d2053aa292617c760a270a084bf401dda5860
|
|
| MD5 |
6954346abb652367bd3f4a5207c7654c
|
|
| BLAKE2b-256 |
223b94661089b8c4004834fcacafc46bac44adba7516ab4d8872adfe3f1f8f72
|
File details
Details for the file ai_semantic_engine-1.0.0-py3-none-any.whl.
File metadata
- Download URL: ai_semantic_engine-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd3aa7411bdd435cc67500fac0ed361726eaccb77b6e02e7b84a2d35d518c8a3
|
|
| MD5 |
359c8523149cc70be78cce6c11344225
|
|
| BLAKE2b-256 |
9c9afb0b3f6ae6b4da4f97cbd9cd9a2617273ed8f10903a23d08aa6cbfee545a
|