EthosLens

Inspiration

The inspiration for EthosLens stems from the critical and growing need for robust AI safety and compliance within enterprise environments. As AI systems become more integrated into business processes, ensuring they operate ethically and within regulatory boundaries is paramount. We wanted to move beyond simple post-hoc auditing to a system of active, real-time policy enforcement that empowers businesses to deploy AI with confidence. The goal was to create a solution that provides transparency, auditability, and proactive risk reduction for AI-driven decision-making.

What it does

EthosLens is an enterprise-grade AI governance and compliance platform that detects and blocks harmful content in real-time. It transforms standard AI interactions into governance-aware conversations through a sophisticated multi-agent architecture.

Key features include:

  • Real-time Harmful Content Detection: The platform can identify and block a range of harmful content, including violence, PII, bias, and misinformation, with a high degree of accuracy. It uses a multi-agent system, with agents like PolicyEnforcer, AuditLogger, and ResponseAgent working in tandem to analyze and manage AI interactions.
  • Live Monitoring and Analytics: EthosLens provides a live monitoring dashboard for real-time observation of AI interactions. The dashboard includes analytics on blocked and approved content, and a 2D interactive force graph for visualizing data relationships.
  • Persistent Audit Trails: All interactions and detected violations are permanently stored in a Neo4j graph database, creating comprehensive audit trails and mapping the relationships between different agent actions.

How we built it

EthosLens is a full-stack application built with a modern, robust technical stack:

  • Frontend: The user interface is built with React 18, TypeScript, and Tailwind CSS, using Vite for the build system.
  • Backend: The backend is powered by Node.js and Express, forming the core of the policy enforcement engine.
  • Database: We use Neo4j Aura, a graph database, to store and manage the complex relationships within the AI interaction data, ensuring a complete and auditable trail of all activities.
  • AI and APIs: The platform integrates with large language models like OpenAI's GPT-3.5-turbo, and also utilizes the Groq API and Perplexity AI. It's designed for future integration with LlamaIndex for multi-model support.
  • Architecture: EthosLens is built on a multi-agent governance system, where different agents are responsible for different aspects of the compliance process, from policy enforcement to logging. We've also integrated CopilotKit for a more agentic and interactive user experience.

The overall system design follows a microservices architecture, with a clear separation of concerns between the frontend, backend, and the governance agents, creating a scalable and maintainable platform.

Challenges we ran into

During the development of EthosLens, we encountered a few challenges:

  • Violation Detection Complexity: Implementing a nuanced and accurate violation detection system is a significant challenge. For this version, we used a simplified, pattern-based approach for detecting violations like PII and bias. We recognize that a production-grade system would require more sophisticated machine learning models to handle the subtleties of harmful content.
  • LlamaIndex Integration: While we've prepared the groundwork for integrating LlamaIndex to support multiple language models, the integration is not yet active in the current version.
  • User Management: The current version has a basic authentication system and lacks a full user management or multi-tenancy system, which would be essential for a full enterprise-level deployment.

Accomplishments that we're proud of

We are particularly proud of several key innovations and accomplishments with EthosLens:

  • Real-time Enforcement: We've successfully created a system that goes beyond simple auditing to provide real-time governance and policy enforcement, which is a significant step forward in AI safety.
  • Agentic Compliance Assistant: The AI assistant we've built can understand and explain the governance decisions being made, providing a more transparent and user-friendly experience.
  • Graph-based Auditing: The use of a Neo4j graph database for audit trails allows for a much deeper, relationship-aware understanding of compliance data, which is a novel approach in this space.
  • Multi-Framework Support: We've designed EthosLens to be capable of handling multiple regulatory frameworks simultaneously, including GDPR, the EU AI Act, and IEEE Ethics standards, making it a versatile tool for global enterprises.

What we learned

This project was a deep dive into the practical challenges and opportunities in the field of AI governance. We learned a great deal about the complexities of real-time content analysis and the importance of a robust, auditable data storage system. The process of designing and building the multi-agent system gave us valuable insights into how different specialized AI agents can work together to achieve a common goal. We also learned about the importance of a well-designed user experience in making complex governance data accessible and understandable to a non-technical audience.

What's next for EthosLens

We have a clear roadmap for the future development of EthosLens, with several key enhancements planned:

  • Advanced Violation Detection: We plan to integrate advanced, ML-based models for more accurate and nuanced violation detection.
  • Multi-Model Support: Completing the integration with LlamaIndex to support a wider range of AI models is a top priority.
  • Enterprise-Ready Features: We will be implementing a comprehensive enterprise authentication system with Role-Based Access Control (RBAC), as well as advanced analytics and reporting features.
  • Performance and Scalability: To ensure the platform can handle enterprise-level workloads, we will be adding API rate limiting, caching, and comprehensive test coverage.

Built With

Share this project:

Updates