Skip to main content

A comprehensive SDK for standardizing, processing, embedding, and retrieving data for AI applications

Project description

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 and hybrid search
  • PII detection and masking
  • User feedback submission
  • IP allowlist management (admin only)

Installation

pip install ai-data-sdk-zeebee==0.1.2

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."
]

result = client.create_embeddings(texts)

Search for Similar Documents

# Basic search
search_result = client.search(query_text="How do machines learn from data?")

# Advanced search with filters
filters = {
    "category": "technology",
    "rating": {"$gt": 4.5}
}

search_result = client.search(
    query_text="neural networks",
    filters=filters,
    hybrid_search_text="deep learning",
    hybrid_alpha=0.3
)

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, pii_types=["email", "phone"], mask=True)

# Advanced anonymization
result = client.detect_pii(
    text,
    advanced_anonymize=True,
    consistent_replacements=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.

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_data_sdk_zeebee-0.1.2.tar.gz (7.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_data_sdk_zeebee-0.1.2-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file ai_data_sdk_zeebee-0.1.2.tar.gz.

File metadata

  • Download URL: ai_data_sdk_zeebee-0.1.2.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for ai_data_sdk_zeebee-0.1.2.tar.gz
Algorithm Hash digest
SHA256 3412de404c100f78f1b9bcf886fe51b8967f4a98f6c2ba7e002c43c6b35c7654
MD5 5d98d6b2d0b4e16f12e6d85549d8b27f
BLAKE2b-256 8fe1f2bc24d83788930837af08c8daa7fb2aa4bc903de75902788c787b0f3cab

See more details on using hashes here.

File details

Details for the file ai_data_sdk_zeebee-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for ai_data_sdk_zeebee-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2f194cc394b82b7f1e058916c3e32822d5ffe16f71a9e30f7a3e117dc94f7177
MD5 62ac1c548dff774b53f5d3030e499316
BLAKE2b-256 18bcdf29d466ce68ddb163d7193957869ddbd881c617fe70fcb5aa2da0905cec

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