-
Notifications
You must be signed in to change notification settings - Fork 1
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 Wikipedia Data #6
Comments
@TheOnlyWayUp Yes definitely, I can do that. Your idea is on my list now. If you are free sometimes, we can chat about it. |
This can be used, Public API: https://api.wikimedia.org/wiki/Core_REST_API/Reference/Search/Search_result_object |
For Future ref: China_India_relation |
@Nil2000 Do test the initial wikipedia attachment. Now we are passing the whole extracted text from the html to chatgpt. Passing max 15k tokens. |
Hmm, I took a look at Wikipedia's simple pages (simple.wikipedia.org), they have very few stubs for geopolitical relations (valid, they're hard to boil down in most cases). I see a few options, ranked by how well they'd do (imo)
Tias! |
You are right, using the RAG approach is the way to go for cost effective and more accuracy. And also for more current results if we fetch top 20-30 news articles from the internet of selected two countries and use that if it would be much much better but it would cost more. Ideal: Use Wikipedia + GPT for overall knowledge, and latest news. |
Added a quick support for this, but need to improve on it further. |
Hey Tanmay, cool project!
Atm the data is from GPT-4o,
GeoPulse/src/app/api/generate/route.ts
Lines 46 to 78 in 11d926a
Maybe you could integrate data from the Wikipedia pages (which change as events occur, geopolitical and otherwise), and feed it into GPT for better information (something like RAG?).
Example: France-India Relations | wikipedia.org
The text was updated successfully, but these errors were encountered: