Skip to content

Feature/dual engine ai explorer - #1588

Open
roshankumar0036singh wants to merge 2 commits into
CodeGraphContext:mainfrom
roshankumar0036singh:feature/dual-engine-ai-explorer
Open

Feature/dual engine ai explorer#1588
roshankumar0036singh wants to merge 2 commits into
CodeGraphContext:mainfrom
roshankumar0036singh:feature/dual-engine-ai-explorer

Conversation

@roshankumar0036singh

@roshankumar0036singh roshankumar0036singh commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Feature: Implement Dual-Engine AI Knowledge Explorer for Static Web Mode

This PR addresses the "405 Method Not Allowed" server errors encountered in the static web deployment when using the AI Knowledge Explorer. Previously, the AI Explorer relied entirely on the Neo4j backend to process queries, which is unavailable in the static web export.

This PR introduces a "Dual-Engine Model":

  1. Neo4j Engine (Server-Side): When running via the Python CLI (with the backend URL parameter), the system routes queries to the backend to leverage Cypher graph search.
  2. BYOK Engine (Client-Side): When running in static mode, the system automatically falls back to a purely client-side engine. It prompts the user for a Bring Your Own Key (BYOK) LLM configuration (Gemini or Mistral). It then minifies the graph structure into a context-efficient JSON payload and uses the LLM directly from the browser to reason over the repository structure.

Changes

  • Added executeClientAIQuery in src/lib/summary-engine.ts to construct the prompt and handle JSON-mode LLM execution.
  • Added LLM config panel inside the AI Explorer sidebar if no configuration exists in static mode.
  • Updated handleAIQuerySubmit in CodeGraphViewer.tsx to intelligently toggle between the backend API fetch and the browser-based client-side execution.
  • Configured dynamic UI badges to indicate which engine is currently active.

…raphViewer

- Ported glowing connection-aware node visualization from the experimental KnowledgeGraph into the main CodeGraphViewer (Classic/Curvy modes).
- Deleted redundant UnderstandPage, UnderstandSection, and knowledge-graph directory.
- Integrated summary-engine.ts into CodeGraphViewer's side panel to display Architecture Component Role and Dependency Impact.
- Cleaned up ComparisonTable.tsx and RepositorySummary.tsx UI.
- Fixed TypeScript union error on VisualizationMode.
@vercel

vercel Bot commented Aug 7, 2026

Copy link
Copy Markdown

@roshankumar0036singh is attempting to deploy a commit to the shashankss1205's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog tasks

Development

Successfully merging this pull request may close these issues.

1 participant