How To: Execute Query
Executing a query allows an end-user to interact securely with an AI model on the LatticaAI platform. This guide explains how to submit an encrypted query using the Query Client.
Last updated
Was this helpful?
Executing a query allows an end-user to interact securely with an AI model on the LatticaAI platform. This guide explains how to submit an encrypted query using the Query Client.
Last updated
Was this helpful?
Encrypted Message: The input using the Secret Key in the Query Client.
User Access Token: The user must have a valid Access Token, specific to the AI model being queried. Tokens are validated by LatticaAI during the query process.
Use the following code snippet to execute the query. Provide the User Access Token and the encrypted message as parameters:
Process the Response
If the query is successful, the result will be returned as an encrypted response.
the response using your Secret Key to obtain the result.
This step focuses on a specific part of the query process: Query Execution. If you prefer to perform encryption, query execution, and decryption in a single command, refer to [How-To: ].