Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!

Using Gemini and QlikSense #qlik #qlikview #saas #gemini #google #rest

cancel
Showing results for 
Search instead for 
Did you mean: 
eddyvargas
Contributor II
Contributor II

Using Gemini and QlikSense #qlik #qlikview #saas #gemini #google #rest

Last Update:

Sep 3, 2024 9:01:38 AM

Updated By:

eddyvargas

Created date:

Sep 3, 2024 9:01:38 AM

Config REST connector for Gemini

URL: https://generativelanguage.googleapis.com/v1/models/gemini-pro:generateContent/?key=XXXXXXXXXXXXXXXX...

XXXX is your API Key

Method: POST

Body:

{"contents": {"role": "user","parts": {"text": "Give me a recipe for banana bread."}},

"safety_settings": {

"category": "HARM_CATEGORY_SEXUALLY_EXPLICIT",

"threshold": "BLOCK_LOW_AND_ABOVE"

},

"generation_config": {

"temperature": 0.9,

"topP": 1.0,

"maxOutputTokens": 2048

}

}

ALLOW WITH CONN

Config the script in Qlik Sense SaaS

Then in your script you need to create your question in a variable (like vResponseBody) and use in the Query

WITH CONNECTION (BODY "$(vResponseBody)");

 

Relative links

https://www.reddit.com/r/qlik_sense/comments/1f6vk0h/sentiment_analysis_using_gemini_and_qliksense/

https://www.reddit.com/r/qlik_sense/comments/1f6m35g/how_to_use_gpt_free_to_analyze_social_media_in/

 

Labels (2)
Contributors
Version history
Last update:
‎2024-09-03 09:01 AM
Updated by: