Interactive knowledge graph visualization with cognitive bias detection.
Constellation is a web application that generates knowledge graphs from user prompts and detects potential cognitive biases in the concepts.
Key features:
- Generate knowledge graphs from natural language prompts
- Interactive visualization with expandable nodes
- Automatic detection of cognitive biases in concepts
- Detailed information about detected biases
- Node.js (v16+)
- npm or yarn
- OpenAI API key (for LLM functionality)
- Clone the repository
- Install dependencies:
npm install - Create a
.envfile in the root directory based on.env.example:cp .env.example .env - Add your OpenAI API key to the
.envfile:OPENAI_API_KEY=your_api_key_here
npm run dev
This starts both the client (port 3000) and server (port 3001) in development mode.
npm run build
npm start
/src # Frontend React code
/components # UI components
/api # API service functions
/utils # Utility functions
/server # Backend Node.js/Express code
index.js # Server entry point
routes.js # API routes
llmController.js # LLM integration
- User enters a prompt
- Backend calls LLM API to generate related concepts
- Frontend renders the knowledge graph
- Bias detection analyzes concepts for cognitive biases
- User can interact with and explore the graph
- Detailed information is shown in the sidebar when a node is clicked