Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate GCP Gemini Flash 1.5 AI to explain why option selected is correct or wrong. #55

Open
kendricksin opened this issue Jan 26, 2025 · 5 comments
Labels
enhancement New feature or request

Comments

@kendricksin
Copy link

Users want to know why their selection is incorrect or why another answer is better
It may not be easy to find clear answers addressing the question directly on search

Provide the question, answer, and wrong/correct answer as prompt into Gemini 1.5

import google.generativeai as genai

genai.configure(api_key="YOUR_API_KEY")
model = genai.GenerativeModel("gemini-1.5-flash")
response = model.generate_content("
  Explain why the correct answer and wrong answer to the following question
  Which GCP Service provides distributed SQL storage and database?
  WRONG: Cloud SQL
  CORRECT: Cloud Spanner
  ")
print(response.text)

Copy pasting the question and answer into Gemini
Gemini Flash 1.5 is free and it has at least a decent knowledge of GCP, if we can bring Gemini to users that would be great, perhaps in future we could use Google SSO and let users pay for more expensive accurate models.

@kendricksin kendricksin added the enhancement New feature or request label Jan 26, 2025
@danieldanielecki
Copy link
Member

Thank you for the idea, sounds fantastic!

Is it something you'd be interested to pick up and create a Pull Request (PR)?

What kind of improvement are you finding over what we have with Ollama3?
The PR for that change: #19

How to run it/generate explanations: https://github.com/Ditectrev/Practice-Exams-Platform?tab=readme-ov-file#explanations

@kendricksin
Copy link
Author

I will give it ago!

Looking at how it was implemented, it requires locally run ollama, not many people have that infra setup.

The improvement I intend to make would be to simply allow users to copy their Gemini API Key and consume their own resources.

@danieldanielecki
Copy link
Member

I will give it ago!

Looking at how it was implemented, it requires locally run ollama, not many people have that infra setup.

The improvement I intend to make would be to simply allow users to copy their Gemini API Key and consume their own resources.

Interesting.

Can't be the improvement done based on current solution to use that resource, or some kind of fallback?

@danieldanielecki
Copy link
Member

@kendricksin how's the progress on that?:)

@kendricksin
Copy link
Author

sorry i havent got around to start this, maybe next month - btw thank you for helping me pass GCP ACE with ease

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants