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

Language Model Integration #445

Merged
merged 6 commits into from
Apr 11, 2024
Merged

Language Model Integration #445

merged 6 commits into from
Apr 11, 2024

Conversation

DarshanSP19
Copy link
Collaborator

  • Integrated Gemini Model (Chat Generative API mode from Google) to query weather data using Natural Language Prompts.

Input Prompt: Daily average temperature of New York for January 2015

Relevant SQL Query:

SELECT 
    AVG('temperature') 
FROM 
    'gs://darshan-store/ar/2013-2022-full_37-1h-0p25deg-chunk-1.zarr-v3' 
WHERE 
    time >= '2015-01-01' AND 
    time < '2015-02-01' AND 
    city = 'New York' 
GROUP BY time_date

Output Data:

     time_date  avg_temperature
0   2015-01-01       240.978073
1   2015-01-02       243.375031
2   2015-01-03       244.584747
3   2015-01-04       249.673065
4   2015-01-05       245.650833
...
Query took: 00:01:55

@DarshanSP19 DarshanSP19 self-assigned this Feb 23, 2024
@DarshanSP19
Copy link
Collaborator Author

Major code changes required. Converting to draft.

@DarshanSP19 DarshanSP19 marked this pull request as draft February 28, 2024 12:11
@DarshanSP19 DarshanSP19 force-pushed the language-model-integration branch 2 times, most recently from 74981ee to b68861f Compare March 27, 2024 04:47
@DarshanSP19 DarshanSP19 marked this pull request as ready for review March 27, 2024 04:47
@DarshanSP19 DarshanSP19 requested a review from mahrsee1997 March 27, 2024 04:48
Copy link
Collaborator

@mahrsee1997 mahrsee1997 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@DarshanSP19 DarshanSP19 force-pushed the language-model-integration branch from 0aa44c1 to 94bc162 Compare April 10, 2024 05:43
Copy link
Collaborator

@mahrsee1997 mahrsee1997 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@mahrsee1997 mahrsee1997 merged commit 76da807 into main Apr 11, 2024
7 checks passed
@mahrsee1997 mahrsee1997 deleted the language-model-integration branch April 11, 2024 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants