Update README.md
Browse files
README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
emoji: 🦄
|
4 |
colorFrom: pink
|
5 |
colorTo: yellow
|
@@ -9,38 +9,3 @@ app_file: app.py
|
|
9 |
pinned: false
|
10 |
---
|
11 |
|
12 |
-
|
13 |
-
# Should I Follow?
|
14 |
-
|
15 |
-
### Try it out on [🤗 Spaces](https://huggingface.co/spaces/deepset/should-i-follow)
|
16 |
-
|
17 |
-
##### A simple app to get an overview of what the Mastodon user has been posting about and their tone
|
18 |
-
|
19 |
-
This is a demo just for fun 🥳
|
20 |
-
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`.
|
21 |
-
|
22 |
-
It's been built with [Haystack](https://haystack.deepset.ai) using the [`OpenAIGenerator`](https://docs.haystack.deepset.ai/v2.0/docs/openaigenerator) and by creating a [`PromptBuilder`](https://docs.haystack.deepset.ai/v2.0/docs/promptbuilder)
|
23 |
-
|
24 |
-
https://user-images.githubusercontent.com/15802862/220464834-f42c038d-54b4-4d5e-8d59-30d95143b616.mov
|
25 |
-
|
26 |
-
|
27 |
-
### Points of improvement
|
28 |
-
|
29 |
-
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.
|
30 |
-
|
31 |
-
If you try to run it yourself and find ways to make this app better, please feel free to create an issue/PR 🙌
|
32 |
-
|
33 |
-
## To learn more about the PromptBuilder
|
34 |
-
|
35 |
-
As of Haystack 2.0-Beta onwards, you can create prompt templates with Jinja. Check out guide on creating prompts [here](https://docs.haystack.deepset.ai/v2.0/docs/promptbuilder)
|
36 |
-
|
37 |
-
## Installation and Running
|
38 |
-
To run the bare application which does _nothing_:
|
39 |
-
1. Install requirements:
|
40 |
-
`pip install -r requirements.txt`
|
41 |
-
2. Run the streamlit app:
|
42 |
-
`streamlit run app.py`
|
43 |
-
|
44 |
-
This will start up the app on `localhost:8501` where you will dind a simple search bar
|
45 |
-
|
46 |
-
#### The Haystack Community is on [Discord](https://discord.com/invite/VBpFzsgRVF)
|
|
|
1 |
---
|
2 |
+
title: KBA AI Demo
|
3 |
emoji: 🦄
|
4 |
colorFrom: pink
|
5 |
colorTo: yellow
|
|
|
9 |
pinned: false
|
10 |
---
|
11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|