Skip to content

hridaya423/lattice

Repository files navigation

Lattice

A sophisticated AI-powered application that analyzes complex topics from multiple perspectives, plays devil's advocate, and provides comprehensive moral reasoning with real-time web research capabilities.

🧠 Features

  • Multi-Perspective Analysis: Get viewpoints from various perspectives
  • Devil's Advocate: AI challenges each position with counterarguments
  • Stakeholder Analysis: Identifies all parties affected by ethical decisions
  • Interactive Chat: Ask follow-up questions and dive deeper into specific aspects
  • Real-time Reading Suggestions: Find relevant articles, research papers, and resources from across the web using Serper Google Search API
  • Argument Tree: Visualize the argument tree of the topic

🚀 Getting Started

Prerequisites

  • Node.js 18+ and npm
  • A Groq API key (get one at Groq Console)
  • A Serper API key (get one at Serper.dev) for readinpg suggestions

Installation

  1. Clone the repository

    git clone https://github.com/hridaya423/lattice.git
    
    cd lattice
  2. Install dependencies

    npm install
  3. Set up environment variables Create a .env.local file in the root directory:

    GROQ_API_KEY=your_groq_api_key_here
    
    SERPER_API_KEY=your_serper_api_key_here
  4. Run the development server

npm run dev
  1. Open your browser Navigate to http://localhost:3000

Some AI was used in the making of this project, mainly by copilot/cursor suggestions/autocomplete, some bug fixes, and the logo.