Skip to content

technologiestiftung/ber-gpt-frontend

Repository files navigation

All Contributors

BärGPT - AI chat assistant

BärGPT is a productive AI testing environment available for employees of the Berlin state administration, provided by CityLAB Berlin. BärGPT is designed to help test the practical applications of artificial intelligence for administrative work. In addition to a chat function, BärGPT includes a number of initial smaller applications (AI apps) for specific tasks in the administrative context. The list of applications will be continuously expanded in dialogue with employees of the Berlin administration. To support this, we will offer regular workshops in the future and welcome ideas and feedback.

Why did we develop BärGPT?

In the spring of 2024, the Berlin Senate Chancellery convened an "AI Taskforce" and organized a series of workshops at CityLAB Berlin to discuss the potential applications of artificial intelligence in administrative work. During these discussions, it became clear that there was a need to provide employees with a low-threshold testing environment, allowing them to experiment with initial ideas in a protected setting. In response, CityLAB offered to establish such a platform.

What should I keep in mind regarding data protection and data security?

BärGPT offers users a selection of different large language models, which vary in terms of data protection.

  • The model azure-gpt-4o-mini is operated by Microsoft in a data center in Sweden, and thus falls under GDPR regulations. Input data is neither stored nor used for training purposes. This model offers a higher level of data protection compared to similar offerings from the U.S.
  • The model openai-gpt-4o-mini provides the same functionality but is operated by OpenAI in the United States. This model should only be used for comparison purposes, as it offers no advantages over the Microsoft model.
  • The model citylab-macstudio-llama-3.1 is hosted by CityLAB Berlin in compliance with data protection regulations. It is an open-source model, which in many cases can match the quality of commercial models. It is important to note that none of the available AI models are operated within the Berlin state network. Therefore, personal or otherwise sensitive data, as well as data intended exclusively for use within the Berlin state network, must not be entered.

Can BärGPT also be used for other use cases?

BärGPT is a flexible AI infrastructure and can, in principle, be adapted and further developed for various use cases and contexts. Do you have an idea for a specific use case where BärGPT could be helpful? If so, we would be happy to hear from you.

n line with the principle of "Public Money - Public Code," CityLAB Berlin releases all prototypes, including BärGPT, under an Open Source license. This means that BärGPT can and should be used and further developed without restrictions or prior permission. However, we would appreciate feedback if BärGPT is being used and are happy to assist with the initial steps.

Prerequisites

Development setup

Prepare required env variables:

  • Setup .env file by copying .env.sample
  • Set VITE_X_API_KEY to the API key of the BärGPT API
  • Set VITE_API_URL to the API endpoint of the BärGPT API

Prepare optional env variables to enable Matomo tracking:

  • NEXT_PUBLIC_MATOMO_URL=...
  • NEXT_PUBLIC_MATOMO_SITE_ID=..

Install dependencies:

  • npm ci

Run development server:

  • npm run dev

Open http://localhost:5173 with your browser to see the application running.

Deploy

You can deploy and run the BärGPT on the platform of your choice. We use Vercel.com, you can follow their step-by-step guides to deploy your version of BärGPT.

Tests

npm t

Contributing

Before you create a pull request, write an issue so we can discuss your changes.

Contributors

Thanks goes to these wonderful people (emoji key):

Raphael.A
Raphael.A

📖
aeschi
aeschi

📖
Jonas Jaszkowic
Jonas Jaszkowic

📖
Ingo Hinterding
Ingo Hinterding

📖

This project follows the all-contributors specification. Contributions of any kind welcome!

Credits

Made by

A project by

Supported by

Related Projects