AI Data SDK by Zeebee
A comprehensive SDK for standardizing, processing, embedding, and retrieving data for AI applications.
Features
- Text embedding generation
- Semantic search with filtering
- PII detection and masking/anonymization
- User feedback submission
- IP allowlist management (admin only)
Installation
pip install ai-data-sdk-zeebee==0.1.3
Usage
Initialize Client
from ai_data_sdk import AIDataClient
# Initialize with your API key
client = AIDataClient(api_key="your_api_key_here")
Generate Embeddings
# Generate embeddings for a list of texts
texts = [
"AI Data SDK helps standardize data for AI applications.",
"The embedding module converts text into vector representations."
]
# Optional metadata for each text
metadata = [
{"source": "documentation", "category": "overview"},
{"source": "documentation", "category": "technical"}
]
result = client.create_embeddings(
texts=texts,
model="text-embedding-3-small",
normalize=True,
metadata=metadata
)
Search for Similar Documents
# Basic search with query text
search_result = client.search(query="How do machines learn from data?")
# Search with vector embedding
embedding = [0.1, 0.2, 0.3, ...] # Your embedding vector
search_result = client.search(embedding=embedding, top_k=5)
# Advanced search with filters
filters = {
"category": "technology",
"rating": {"$gt": 4.5}
}
search_result = client.search(
query="neural networks",
filters=filters,
top_k=10
)
Detect and Mask PII
# Basic PII detection
text = "My email is john.doe@example.com and my phone is 555-123-4567."
result = client.detect_pii(
text=text,
pii_types=["email", "phone"]
)
# PII detection with masking
result = client.detect_pii(
text=text,
pii_types=["email", "phone"],
mask_pii=True,
mask_type="type",
preserve_length=False,
resolve_overlaps=True
)
# Advanced PII anonymization
result = client.anonymize_pii(
text=text,
pii_types=["email", "phone", "name"],
consistent_replacements=True,
resolve_overlaps=True
)
Submit Feedback
feedback = client.submit_feedback(
query_id="q_12345",
result_id="doc_1",
rating=4,
comments="Very relevant result, but missing some details."
)
Error Handling
from ai_data_sdk import APIError, AuthenticationError, InvalidRequestError, RateLimitError
try:
result = client.create_embeddings(texts)
except AuthenticationError:
print("Authentication failed. Check your API key.")
except InvalidRequestError as e:
print(f"Invalid request: {e}")
except RateLimitError:
print("Rate limit exceeded. Please try again later.")
except APIError as e:
print(f"API error: {e}")
Documentation
For full documentation, visit https://ai-data-sdk.readthedocs.io/
License
This project is licensed under the MIT License - see the LICENSE file for details.
Metadata
Release files for ai-data-sdk-zeebee 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| ai_data_sdk_zeebee-0.1.3.tar.gz | 7.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ai_data_sdk_zeebee-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.4 kB
Release files / ai_data_sdk_zeebee-0.1.3.tar.gz
| Download URL | ai_data_sdk_zeebee-0.1.3.tar.gz |
|---|---|
| Size | 7.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8aec0f20606797eadd12fad81f2f9a5b711658eb9e9d55bb62824f1a08c329f7
|
|
BLAKE2b-256 checksum How to use checksums |
1ae2726293314b50730ecfe52e986bb8acd1195cdc76b68d98c2133a36f3d1b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.9
|
Release files / ai_data_sdk_zeebee-0.1.3-py3-none-any.whl
| Download URL | ai_data_sdk_zeebee-0.1.3-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ed66e4c823ea6ebfd110e8b1a92ddd498e1b278a9e5170192dfbaeef8a4b22ce
|
|
BLAKE2b-256 checksum How to use checksums |
7331673c51893312c1c09baff3224b696e75d2dc778668bb122eb0813d33dc21
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.9
|
Security for ai-data-sdk-zeebee 0.1.3
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.