How anaghapai/anamnesis works
Anamnesis is an offline organizational knowledge and memory app. Employees sign in, search or ask questions against permission-filtered documents and verified answers, then review cited results; managers can correct answers and facts, with downstream review and impact workflows. The backend also supports document access controls, workspace approvals, organizational insights, graph reasoning, and audit history. The README documents the product capabilities; source excerpts and the SOURCE INDEX identify backend modules, but do not expose most UI-to-API wiring, so those links are omitted or marked unverified.
Main entry points: main.py API routes · retrieval.py Permission-aware retrieval · models.py Domain records · app.js Web application
Components 23
User interface
- Web application
frontend/app.js - Knowledge search
frontend/search.js - Insights interface
frontend/insights.js - Audit interface
frontend/audit.js
Application API
- API routes
backend/app/main.py - Authentication
backend/app/auth.py - Document access and workspace
backend/app/features.py - Help navigation
backend/app/help_bot.py
Knowledge processing
- Document extraction
backend/app/extract.py - Permission-aware retrieval
backend/app/retrieval.py - Filtered search
backend/app/orgsearch.py - Concept matching
backend/app/nlp.py - Knowledge graph
backend/app/graph.py - Knowledge answers
backend/app/knowledge.py - Local model reasoning
backend/app/llm.py
Reviews and governance
- Document controls
backend/app/features.py - Review and memory insights
backend/app/insights.py - Dependency impact
backend/app/impact.py - Audit history
backend/app/auditview.py - Audit chain
backend/app/auditchain.py
Persistence
- Domain records
backend/app/models.py - SQLite database
backend/app/db.py
Other components
- Employee
Connections 34
- Employee → Web application: uses
README.md - Web application → Knowledge search: includes
- Web application → Insights interface: includes
- Web application → Audit interface: includes
- Web application → API routes: calls API
- API routes → Authentication: uses
backend/app/main.py - API routes → Document access and workspace: routes features
backend/app/main.py - API routes → Document extraction: uses
backend/app/main.py - API routes → Permission-aware retrieval: uses
backend/app/main.py - API routes → Filtered search: routes search
backend/app/main.py - API routes → Knowledge graph: uses
backend/app/main.py - API routes → Knowledge answers: uses
backend/app/main.py - API routes → Local model reasoning: routes reasoning
backend/app/main.py - API routes → Review and memory insights: routes insights
backend/app/main.py - API routes → Dependency impact: routes impact
backend/app/main.py - API routes → Audit history: routes audit
backend/app/main.py - API routes → Audit chain: routes audit chain
backend/app/main.py - Permission-aware retrieval → Concept matching: matches concepts
backend/app/retrieval.py - Filtered search → Concept matching: matches concepts
backend/app/orgsearch.py - Knowledge graph → Concept matching: expands terms
backend/app/graph.py - Knowledge graph → Domain records: stores facts
backend/app/graph.py - Permission-aware retrieval → Domain records: reads documents
backend/app/retrieval.py - Document extraction → API routes: returns extracted text
backend/app/main.py - Review and memory insights → Knowledge graph: updates facts
- Review and memory insights → Permission-aware retrieval: uses retrieval
backend/app/insights.py - Dependency impact → Permission-aware retrieval: uses retrieval
backend/app/impact.py - Local model reasoning → Permission-aware retrieval: checks evidence
backend/app/llm.py - Document access and workspace → Permission-aware retrieval: rebuilds chunks
backend/app/features.py - Document access and workspace → Domain records: manages records
backend/app/features.py - Audit history → Domain records: reads audit records
backend/app/auditview.py - Audit chain → Domain records: reads audit records
backend/app/auditchain.py - Authentication → Domain records: loads users
backend/app/auth.py - Domain records → SQLite database: persists entities
- Help navigation → API routes: serves help