TuanaCelik / should-i-follow

πŸ¦„ An NLP application just for the lols: built with Haystack to get an overview of what a user is posting about on Twitter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

title emoji colorFrom colorTo sdk sdk_version app_file pinned
Should I follow?
πŸ¦„
pink
yellow
streamlit
1.21.0
app.py
false

Should I Follow?

Try it out on πŸ€— Spaces

A simple app to get an overview of what the Mastodon user has been posting about and their tone

This is a demo just for fun πŸ₯³ This repo contains a streamlit application that given a Mastodon username, tells you what type of things they've been posting about lately, their tone, and the languages they use. It uses the LLM by OpenAI gpt-4.

It's been built with Haystack using the OpenAIGenerator and by creating a PromptBuilder

Screen.Recording.2023-02-21.at.22.40.30.mov

Points of improvement

Since we're using a generative model here, we need to be a bit creative with the prompt we provide it to minimize any hallucination or similar unwanted results. For this reason, I've tried to be a bit creative with the PromptBuilder template and give some examples of how to construct a summary. However, this still sometimes produces odd results.

If you try to run it yourself and find ways to make this app better, please feel free to create an issue/PR πŸ™Œ

To learn more about the PromptBuilder

As of Haystack 2.0-Beta onwards, you can create prompt templates with Jinja. Check out guide on creating prompts here

Installation and Running

To run the bare application which does nothing:

  1. Install requirements: pip install -r requirements.txt
  2. Run the streamlit app: streamlit run app.py

This will start up the app on localhost:8501 where you will dind a simple search bar

The Haystack Community is on Discord

About

πŸ¦„ An NLP application just for the lols: built with Haystack to get an overview of what a user is posting about on Twitter


Languages

Language:Python 100.0%