Refrence
For a detailed exploration of the Gen AI Query Engine, including its integration process and benefits, check out the Medium post : Gen AI Query Engine
Prerequisites
Before setting up the Gen AI Query Engine, ensure the following:
✅ Snowflake Credentials – Retrieve credentials from the referenced Forge asset documentation Snowflake Connector. For authentication, key-pair authentication will be used, but alternative methods can be opted for as per the Forge documentation.✅ Google AI API Key – Obtain the API key from Google AI Studio (https://aistudio.google.com/app/apikey).✅ OutSystems Configuration – Configure Snowflake credentials and Google AI API key in the site properties of the Gen AI Query Engine for seamless integration.
How It Works
The Gen AI Query Engine follows a structured process to convert natural language prompts into accurate SQL queries while ensuring data security.
Step 1: Metadata Retrieval from Snowflake
Step 2: User Input (Natural Language Prompt)
Step 3: Query Generation using Gemini Query Generator
Step 4: Query Execution in Snowflake
Step 5: Natural Language Response Creation
Final Step: Display the Answer
The system presents the natural language response in the user interface, ensuring a user-friendly experience.