Know Your Rights
Helping You Understand and Assert Your Rights
What it does
The "Know Your Rights" app is a Django/React webapp informing users about legal rights and support resources across countries. Users input nationality, current country, and an incident to receive relevant rights and institutional contacts. A learning mode generates scenarios based on user-provided context for educational purposes. Users can edit scenarios to explore further. The app includes error handling for irrelevant inputs and incomplete fields.
Gemini API Integration:
1. Rights and Contact Generation: We send prompts to the Gemini API with user's nationality, country, and incident details, requesting relevant legal rights and institutional contacts.
2. Scenario Creation: For learning mode, we prompt the API with nationality, country, and context, asking for realistic scenarios, which then is used to generate appropriate rights and contacts.
We structure prompts to get specific information needed. The API returns text responses, which we process and format for the React frontend.
By using Gemini AI, our app provides dynamic, personalized legal information without a pre-populated database, adapting to various contexts and user needs across countries and situations.
Built with
- Web/Chrome
Team
By
Know Your Rights
From
Norway