How kulkarnishub377/omnisight works
OmniSight is a multi-modal incident-intelligence backend. Sensors and operators submit events through the API; events are validated, stored, and processed into incidents. Investigations retrieve document evidence, generate hypotheses and recommended actions, and apply safety checks before results are presented or actions are dispatched. The graph includes the documented ingestion, agent, memory, and action capabilities; some integrations are documented but their runtime wiring is not shown in the excerpts.
Main entry points: agent_service.py Agent Investigation · main.py FastAPI Gateway · event_service.py Event Ingestion · events.py Event Endpoints
Components 19
API and Ingress
- FastAPI Gateway
backend/app/main.py - Event Endpoints
backend/app/routers/events.py - Authentication
backend/app/core/security.py - Source Connectors
backend/app/connectors
Events and Incidents
- Event Ingestion
backend/app/services/event_service.py - Event Processing
backend/app/services/event_processor.py - Incident Endpoints
backend/app/routers/incidents.py - Relational Store
backend/app/db/session.py - Domain Records
backend/app/models/models.py
Knowledge and Investigation
- Document Endpoints
backend/app/routers/documents.py - Document Ingestion
backend/app/services/document_service.py - Semantic Search
backend/app/services/search_service.py - Agent Investigation
backend/app/services/agent_service.py
Actions and Operations
- Action Execution
backend/app/services/action_service.py - Audit Logging
backend/app/services/audit_service.py - Operator Console
- External Action Targets
Other components
- Edge Sensors
- Operators
Connections 25
- Edge Sensors → FastAPI Gateway: submit signals
- Operators → FastAPI Gateway: use API
- FastAPI Gateway → Event Endpoints: routes requests
backend/app/main.py - FastAPI Gateway → Incident Endpoints: routes requests
backend/app/main.py - FastAPI Gateway → Document Endpoints: routes requests
backend/app/main.py - Event Endpoints → Event Ingestion: ingests events
backend/app/routers/events.py - Event Endpoints → Authentication: checks access
backend/app/routers/events.py - Incident Endpoints → Agent Investigation: starts investigation
backend/app/routers/incidents.py - Incident Endpoints → Authentication: checks access
backend/app/routers/incidents.py - Document Endpoints → Document Ingestion: uploads documents
backend/app/routers/documents.py - Document Endpoints → Semantic Search: searches evidence
backend/app/routers/documents.py - Source Connectors → Event Endpoints: provide signals
- Event Ingestion → Event Processing: processes event
backend/app/services/event_service.py - Event Ingestion → Relational Store: persists event
backend/app/services/event_service.py - Event Processing → Relational Store: updates state
- Agent Investigation → Semantic Search: retrieves evidence
backend/app/services/agent_service.py - Document Ingestion → Semantic Search: indexes chunks
backend/app/services/document_service.py - Semantic Search → Relational Store: reads chunks
backend/app/services/search_service.py - Agent Investigation → Relational Store: reads and writes
backend/app/services/agent_service.py - Event Ingestion → Audit Logging: records ingestion
backend/app/services/event_service.py - Document Ingestion → Audit Logging: records upload
backend/app/services/document_service.py - Agent Investigation → Audit Logging: records completion
backend/app/services/agent_service.py - Agent Investigation → Operator Console: presents findings
- Agent Investigation → Action Execution: dispatches approved actions
- Action Execution → External Action Targets: calls integrations