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

Analyzing articles with AI #4

Closed
4 tasks done
devsheva opened this issue Jun 29, 2024 · 0 comments
Closed
4 tasks done

Analyzing articles with AI #4

devsheva opened this issue Jun 29, 2024 · 0 comments
Assignees
Labels
feature New feature or request

Comments

@devsheva
Copy link
Owner

devsheva commented Jun 29, 2024

Problem

Apparently seems that it's not possible to filter stories by topics, so an alternative way to achieve a custom filter is the usage on a Generative AI API.

Actually ChatGPT API are not free, so the alternative can be to use Gemini.
Filtering can be achieved by scanning titles, so the AI tries to filter stories by intersecting titles with user preferences.

Gemini API Docs

v1beta Gemini API introduced configuration for response mime types and response schema.

Therefore this stuff should be done:

  • set responseMimeType to json
  • set responseSchema to a matching OpenAPI schema for desired result.

This should be run as a cron-job like, with a daily schedule that runs an analysis for all users at once and sends updates.

  • setup daily cron job
  • run analysis on schedule

https://docs.deno.com/deploy/kv/manual/cron/#cron-configuration-examples

@devsheva devsheva added feature New feature or request help wanted Extra attention is needed labels Jun 29, 2024
devsheva added a commit that referenced this issue Jul 7, 2024
# This is the 1st commit message:

chore: add test job

# This is the commit message #2:

chore: add debug env log

# This is the commit message #3:

fix: add environment name

# This is the commit message #4:

fix: add app_env secret

# This is the commit message #5:

fix: use var app_env

# This is the commit message #6:

chore: debug bot token

# This is the commit message #7:

fix: move env in deploy job

# This is the commit message #8:

chore: add env in deploy step

# This is the commit message #9:

chore: debug  secret

# This is the commit message #10:

chore: another log
@devsheva devsheva self-assigned this Jul 10, 2024
@devsheva devsheva added wontfix This will not be worked on and removed feature New feature or request help wanted Extra attention is needed labels Jul 20, 2024
@devsheva devsheva reopened this Jul 20, 2024
@devsheva devsheva added feature New feature or request help wanted Extra attention is needed and removed wontfix This will not be worked on labels Jul 20, 2024
@devsheva devsheva mentioned this issue Jul 20, 2024
2 tasks
@devsheva devsheva removed the help wanted Extra attention is needed label Jul 27, 2024
@devsheva devsheva closed this as completed Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants
@devsheva and others