Open 42piratas opened 4 months ago
We can use a version control table in the database where we can record the last update day. This way we would speed up this verification.
The referral link comes from the chatgpt search return, correct?
We can create a table with all countries with some information like that, and in future use this informations for filters
In this case I think we can do something more organic, I haven't found any updated API that provides this data yet but I can look for it. But as it will be on demand, we can do it organically too.
@thiagopbraga
1 - Yes, we need a table for countries with multiple properties, including smth like "is-democratic";
2 - Yes, all properties must have records on "created-at" and "upadted-at";
3 - Different properties may have different "data-life-time". For example, "is-democratic" may be updated every 06 months while the list of candidates within a election may be updated every 01 week, and candidates profile's info may need to be updated every 03 days or so. Thus, every property may have a different "data-life-time" rule. All these rules/variables should be found (user-friendly named) in a single place for easy maintenance (I suppose config.py
is that place, but I could be wrong);
4 - Yes, sources come from ChatGPT as well, except when certain info comes from APIs; then, we should know ourselves the source/links;
5 - Yes, whenever possible (i.e. when we retrieve data from specific sites, like for "is-democratic" and for the list of scheduled elections in each country) we should retrieve the information through direct APIs rather than through ChatGPT. But when certain sources don't have APIs and there's no other way to crawl their data, we can query ChatGPT to specifically retrieve information from that specific source;
@thiagopbraga fyi, I updated the first msg of this thread under Premises/Database Priority
by adding the following:
- We only update our database as needed. If a country is never selected, no information about elections in that country will be stored. Similarly, if certain data becomes outdated but isn’t requested by any voter, it will remain outdated indefinitely. Except for the property "is-democratic".
@thiagopbraga Based on our discussions yesterday, for this first version, in favor of simplification, pls let's do like this:
I'll update the prompts accordingly, and I will create issues to deal with such cases (and others that we discussed yesterday) in future versions.
Premises
<N1>
days, the app will query ChatGPT.[*] [*] [*] [*]
[*] [*] [*] [*]
[*] [*] [*] [*]
Every country should be flag as either democratic or non-democratic in the database. This flag should come specifically from one of these sources:
The flag should be automatically updated every
<N2>
days.Features
NOTE: Let's keep the alternative of going to any country's website in particular for a future on-demand scenario.
No upcoming elections are scheduled according to our records [*][*][*]
(i.e. in this case, add/link all sources)<country> is reportedly a non-democratic country [*][*][*]
(i.e. in this case, add/link all sources)Footer
DONATE
-> check this issue.BUIDL
pointing tohttps://github.com/42piratas/VOTEgpt/blob/main/CONTRIBUTE.md
GPL-3.0
pointing tohttps://github.com/42piratas/VOTEgpt/blob/main/LICENSE.txt
Other Home Page Elements
How it works
pointing tohttps://github.com/42piratas/VOTEgpt/wiki
Feedback/Report
pointing tohttps://github.com/42piratas/VOTEgpt/issues/new