Core modules

User authentication, chat sessions, uploaded documents, document chunks, embeddings, and message history.

Important workflows

Upload file, index content, ask a question, retrieve context, generate answer, and save conversation.

Security thinking

Use role-based access, validate files, protect API keys, and keep audit logs for enterprise usage.

Deployment thinking

Prepare environment variables, PostgreSQL, static files, background jobs, and CI/CD pipelines.