How manireddy11/prama works
Prama is a local research assistant: a user asks in web or chat mode, the Next.js workspace sends the request through its same-origin proxy, and FastAPI streams the answer and research events back. Web answers follow the documented plan, search, read, rank, write, and citation-verification stages; users can inspect sources and revisit threads. The graph preserves documented optional caching, vector recall, and saved history. Internal research stages share backend/research.py; their links reflect the README’s pipeline, not separately inspected calls. Evidence is limited to the supplied excerpts and README.
Main entry points: main.py Search API · page.tsx Chat workspace · research.py Web search · route.ts Search proxy
Components 20
Research workspace
- Chat workspace
frontend/app/page.tsx - Source previews
frontend/app/page.tsx
Request and persistence
- Search proxy
frontend/app/api/search/route.ts - Search API
backend/main.py - Thread history
backend/main.py - Saved turns
supabase/migrations/20261125000000_research_turns.sql
Research pipeline
- Query planning
backend/research.py - Web search
backend/research.py - Page extraction
backend/research.py - Passage ranking
backend/research.py - Answer generation
backend/research.py - Citation verification
backend/research.py - Search cache
backend/research.py - Vector recall
backend/research.py
External research services
- Groq
- Jina Search
- Jina Reader
- Upstash Redis
- Pinecone
Other components
- Researcher
Connections 23
- Researcher → Chat workspace: asks question
README.md - Chat workspace → Search proxy: sends request
frontend/app/page.tsx - Search proxy → Search API: forwards HTTP
frontend/app/api/search/route.ts - Search API → Query planning: plans queries
README.md - Search API → Web search: retrieves sources
backend/main.py - Query planning → Web search: expands searches
README.md - Web search → Jina Search: searches web
README.md - Web search → Search cache: caches results
README.md - Search cache → Upstash Redis: stores cache
README.md - Search API → Page extraction: reads pages
README.md - Page extraction → Jina Reader: extracts text
README.md - Search API → Vector recall: recalls pages
README.md - Vector recall → Pinecone: queries vectors
README.md - Search API → Passage ranking: ranks passages
README.md - Search API → Answer generation: generates answer
backend/main.py - Answer generation → Groq: writes answer
README.md - Search API → Citation verification: verifies citations
backend/main.py - Citation verification → Chat workspace: streams verification
- Search API → Chat workspace: streams events
frontend/app/page.tsx - Search API → Thread history: loads history
backend/main.py - Chat workspace → Search proxy: loads threads
frontend/app/page.tsx - Thread history → Saved turns: reads and saves
backend/main.py - Chat workspace → Source previews: opens sources
frontend/app/page.tsx