shrini2305/CoTrust
0
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
DPDPA UI Application
A Streamlit-based interactive Q&A assistant for understanding India's Digital Personal Data Protection Act (DPDPA). This application provides both simple and detailed explanations of DPDPA-related queries using AI-powered agents and knowledge base integration.
Features
- ๐ค AI-powered DPDPA expert assistant
- ๐ Real-time internet search capabilities for latest updates
- ๐ก Dual response modes:
- Simple Mode: Clear, concise explanations
- Detailed Mode: Comprehensive, in-depth analysis
- ๐ Integrated knowledge base using ChromaDB
- ๐ Source attribution and reference tracking
- ๐ฌ Interactive chat interface
Prerequisites
- Python 3.7+
- ChromaDB
- Streamlit
- Agno Framework and its dependencies
- OpenAI API key
Installation
- Clone the repository:
git clone [repository-url]
cd dpdpa-ui-application- Install required dependencies:
pip install -r requirements.txt- Ensure ChromaDB is properly configured with the collection:
COLLECTION_NAME = "dpdpa_knowledge_lc_final_v5"
CHROMA_PERSIST_DIR = "./dpdpa_chroma_lc_final_v5"Usage
- Start the application:
streamlit run dpdpa_streamlit_lite.py- Access the web interface through your browser (typically http://localhost:8501)
- Use the interface to:
- Ask questions about DPDPA
- Toggle between Simple and Detailed response modes
- View source references
- Access internet search for latest updates
- Clear chat history as needed
Project Structure
DPDPA UI Application/
โโโ dpdpa_streamlit_lite.py # Main application file
โโโ dpdpa_chroma_lc_final_v5/ # ChromaDB persistence directory
โโโ requirements.txt # Project dependenciesFeatures in Detail
AI Agents
- DPDPA Expert Agent
- Provides clear explanations of DPDPA concepts
- Uses structured response format with headers
- Includes source citations
- Internet Search Agent
- Fetches latest DPDPA updates
- Provides web-sourced information
- Includes source URLs and dates
Response Modes
- Simple Mode
- Clear, 1-sentence summaries
- Structured explanations
- Practical implications
- "In Simple Terms" summary
- Detailed Mode
- Comprehensive analysis
- Multiple sub-sections
- Technical details
- Regulatory nuances
Security and Disclaimers
- The application is for informational purposes only
- Not a substitute for professional legal advice
- Always verify critical legal information
- Consult qualified legal experts for specific DPDPA compliance guidance
Contributing
Contributions are welcome! Please feel free to submit pull requests.
