Skip to content

ashutosh-sharma/genAI-java-learn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Task 4 - Semantic Kernel Plugins

Description

Added various semantic kernel plugins - in general, any plugin that can do calculations or provide information outside of model knowledge.

Samples

1.

Prompt - Get the current date

image The system has identified that `CurrentDateTimeCalculatorPlugin` plugin should be used to cater to the given prompt, and generated a relevant result.

2.

Prompt - Get the current time image The system has identified that CurrentDateTimeCalculatorPlugin plugin should be used to cater to the given prompt and has generated the relevant result.


3.

Prompt - Calculate age based on the given date of birth 1997-01-30 image The system has identified that AgeCalculatorPlugin plugin should be used to cater to the given prompt and has generated the relevant result.


Task 3 - Working with different models

/Deployments API - The API fetches all available Model names that can be passed on while prompting.

deployment-API-response

Prompting with different models

I have provided a system prompt to help users interact with a store that has three items: Mobile, Television, and headphones, see below: image


I tried the prompt, "List all items in the shop—tell me a poem about it," with different models.

See the responses below for various models and temperature values:

  • Model: gpt-4o
  • Temperature: 0.1
gpt-4o
  • Model: gpt-4o
  • Temperature: 0.9
gpt-4o-temp-9
  • Model: chat-bison
  • Temperature: 0.1
bison-response
  • Model: chat-bison
  • Temperature: 0.9
bison-temp-9
  • Model: DeepSeek - DeepSeek-R1-Distill-Llama-70B-FP8
  • Temperature: 0.1
DeepSeek-response

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages