Frontend UI redesign + BYOK + Interactive Fact-Check Chat

Aperta
#147 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

@akarsh-dhingra ci sta già lavorando.

Dal 5/10/2026.

  • #148 di @khushal1512 — aperta

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
20/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
react, typescript
Ambito
ai, backend, frontend

Direzione di ricerca

Inizia mappando la route /perspective, la gestione di .env nel backend e la pipeline LangGraph descritta nella checklist. Definisci i confini tra la selezione del provider BYOK, il contesto MemorySaver, le citazioni e la UI della chat React, quindi verifica che gli elementi elencati nella checklist siano completi e che le PR correlate non li coprano già.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Opening this issue to track a major UX and architectural upgrade we need for the platform. Currently, the app feels a bit too transactional—users paste a link, get a one-off perspective, and that's it. Plus, we're hardcoding API keys, which doesn't scale well for an open-source project.

I'm proposing a shift to an interactive "Reader" interface where users can chat with the article, verify facts with clear citations, and bring their own API keys (BYOK) to keep the project decentralized and free to host.

Proposed Changes:

Bring Your Own Keys (BYOK): Move all model routing to use user-provided .env keys. Users can switch between Gemini and Groq dynamically from the UI, specifying their preferred models (e.g., llama3-70b-8192 or gemini-1.5-pro).

Frontend Redesign: * Overhaul the /perspective route to include a real-time chat interface.

Add proper loading skeletons/spinners for the initial analysis phase.

Add a model toggle in the chat input bar.

Interactive Chat & Memory: Hook up LangGraph's MemorySaver() so the agent remembers the context of the article. Users can ask follow-up questions instead of just getting a static report.

Citations & Fact-Checking: The agent will now return an article_summary and a list of web_search_citations (from the DuckDuckGo tool) alongside the fact checks. The frontend needs to display these citations clearly so users can verify the AI's work.

Checklist:

[ ] Add .env parsing for dynamic BYOK routing in backend.

[ ] Update LangGraph pipeline to use MemorySaver and return citations/summaries.

[ ] Build new React chat interface for /perspective.

[ ] Add provider dropdown (Groq/Gemini) to the frontend chat component.

[ ] Clean up unused packages (NLTK, Google API clients, etc.).

Let me know if anyone has thoughts on the implementation details!

Related to PR1
PR2

Lingua principale
TypeScript
Stelle
58
Fork
90
Merge medio
11h 51m
PR unite (30g)
3

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di AOSSIE-Org/Perspective

Tutte le issue di AOSSIE-Org/Perspective

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.