LatticaAI Documentation
  • Welcome to LatticaAI
  • Conceptual Guide
  • Architecture Overview
    • Management Client
    • Query Client
  • Platform Workflows
    • Account Management
    • Model Management
    • User Access Management
    • Query Submission
    • Credit Management
    • Worker Management
  • How-To Guides
    • Client Installation
      • How-To: Install Management Client
      • How-To: Install Query Client
    • Model Lifecycle
      • How-To: Deploy AI model
      • How-To: Modify AI Model Settings
    • Access Control
      • How-To: Create User Access Token
      • How-To: Modify User Access Token Setting
      • How-To: Remove Token's Assignment
      • How-To: Assign Token to Model
      • How-To: See List of Tokens
    • Resource Management
      • How-To: Start Worker
      • How-To: Stop Worker
      • How-To: Monitor Worker Performance
    • Secure Query Processing
      • How To: Upload Evaluation Key
      • How-To: Encrypt Input Message
      • How To: Execute Query
      • How-To: Decrypt Output Data
      • How-To: Encrypt, Execute, and Decrypt in One Step
    • Account and Finance Operations
      • How-To: View Payment Transaction History
      • How-To: Update Account Information
      • How-To: View Credit Balance and Add Credit to Your Account
      • How-To: Monitor Balance and Usage
  • Demo Tutorials
    • Image Sharpening with LatticaAI Demo Tutorial
    • Sentiment Analysis with LatticaAI Demo Tutorial
    • Health Analysis with LatticaAI Demo Tutorial
    • Digit Recognition with LatticaAI Demo Tutorial
    • Zooming Into Each Step of Demo Run with LatticaAI flow
Powered by GitBook
On this page
  • Interaction Options
  • Query Client: Key Functions and Flow

Was this helpful?

  1. Architecture Overview

Query Client

PreviousManagement ClientNextPlatform Workflows

Last updated 2 months ago

Was this helpful?

Access Requirements

To interact with an AI model, an end-user will need a unique access key—called a Token—provided by the AI service provider using LatticaAI. This token is crucial for establishing secure connections with the models and maintaining private communication through the Query Client.

Try Our !

LatticaAI offers demo models using a predefined token. No special permissions needed—just explore the Query Client’s features and experience secure, encrypted interactions firsthand.


Interaction Options

LatticaAI offers a TypeScript SDK for queries within web environments and a Python SDK for integrating secure query capabilities in native applications. We also maintain a , containing the core Fully Homomorphic Encryption (FHE) logic, which covers key generation, encryption, and decryption.


Query Client: Key Functions and Flow

The Query Client process consists of three stages:

1

Environment Preparation

to support the Query Client.

2

One-Time Action: Cryptographic Key Generation

  • Once the environment is ready, generate a pair of cryptographic keys—an evaluation key and a secret key.

    • The secret key protects all future interactions with the AI model, securing your data every step of the way.

    • The evaluation key is public and accelerates the computation of these interactions to reduce latency.

  • This key generation is a one-time process and doesn't need to be repeated for each query.

3

Ongoing Process: Query Execution

With the environment ready and keys generated, you can start executing queries. The Query Client enables you to run multiple queries securely, using the same pair of generated keys to protect all data exchanges throughout your session.



Demo
GitHub repository
Set up an environment
Page cover image