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

Integrating NewsAPI to fetch Real-time, Financial, and latest data using Semantic search with SentenceTransformers #109

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

Jeevana38
Copy link

Integrating NewsAPI to fetch Real-time, Financial, and latest data using Semantic search with SentenceTransformers

Integrating NewsAPI to fetch Real-time, Financial, and latest data using Semantic search with SentenceTransformers

This pull request is made to make the bot more user-friendly. Now, this bot can provide answers dealing with real-time data,
financial data and latest news after 2019, which an openAI bot cannot answer. This bot handles the limitations of the Generic OpenAI bot

Strategy Used:

  1. I integrated a 3rd party NewsAPI to extract the latest up-to-date news in the form json strings
  2. After extracting all the news articles, I used semantic search with sentenceTransformers, with which we can semantically search
    for the most similar or relevant document to the user's query.
  3. Then I ranked the top kth relevant documents based on cosine similarity scores
  4. The user will be able to view the document Titles and URLs whenever he asks for real-time or financial or latest news that an OpenAI
    cannot answer

Libraries Installed

  1. Installed SentenceTransformers library for semantic search
  2. Integrated NewsAPI with a unique API key that one can freely obtain after logging onto the NewsAPI website

textbase_screenshot1_latestnews
textbase_screenshot2_financialnews
textbase_screenshot3_realtimeweather_1
textbase_screenshot4_realtime_2
---Attached screenshots in examples --> openai-bot -- > screenshots (folder)

Added functionality with which the bot is able to answer Real-Time queries, Financial data, and latest news
with the help of NewsAPI integration using SentenceTransformers semantic search

I’ve manually tested that code works locally on desktop and mobile browsers.
-I’ve manually tested that code works locally on desktop and mobile browsers.

  • I’ve reviewed my code.
  • I’ve removed all my personal credentials (API keys etc.) from the code.

@vercel
Copy link

vercel bot commented Sep 3, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
textbase ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 3, 2023 5:25pm

@Jeevana38 Jeevana38 changed the title Demobranch Integrating NewsAPI to fetch Real-time, Financial, and latest data using Semantic search with SentenceTransformers Sep 3, 2023
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.

1 participant