How sky-254-1/nebula-search- works
Nebula is a privacy-oriented hybrid search platform with a React web app, FastAPI backend, and mobile shells. The main workflow is a user submitting a query through the app to backend search, where query understanding and hybrid retrieval produce results; document ingestion and crawling supply searchable content, and AI can generate cited answers. Other documented capabilities include authentication, analytics, offline search, and mobile access. Several subsystem links below are based on README descriptions because their implementation files were not sampled; the graph does not imply unshown call-level wiring.
Main entry points: search_service.py Search orchestration · __init__.py Document indexing · engine.py Application database · storage.py Document management
Components 20
User clients
- Web application
frontend/src/App.tsx - Mobile clients
mobile/src/app.ts - Offline search
frontend/public/sw.js
API and identity
- Backend API
backend/app/main.py - Authentication and RBAC
backend/app/services/auth.py - Search endpoints
backend/app/routes/search.py
Search and discovery
- Query understanding
backend/app/search/query_understanding/pipeline.py - Search orchestration
backend/app/search/search_service.py - Hybrid retrieval
backend/app/hybrid - Semantic search
backend/app/search/semantic/engine.py
Content and indexing
- Document management
backend/app/routes/storage.py - Web crawler
backend/app/crawler/crawler.py - Document indexing
backend/vector/pipeline/__init__.py - Incremental reindexing
backend/app/incremental
Data and intelligence
- Application database
backend/app/database/engine.py - Vector stores
backend/app/search/semantic/vector_store - AI answer service
backend/app/services/ai.py - Analytics
backend/app/services/analytics_service.py
Other components
- User
- AI providers
Connections 23
- User → Web application: uses
README.md - Web application → Backend API: calls API
README.md - User → Mobile clients: uses
README.md - Mobile clients → Backend API: accesses
README.md - Backend API → Search endpoints: serves
backend/app/main.py - Search endpoints → Search orchestration: dispatches
- Search orchestration → Query understanding: processes query
backend/app/search/search_service.py - Search orchestration → Hybrid retrieval: retrieves results
README.md - Search orchestration → Semantic search: uses semantic search
README.md - User → Document management: manages documents
README.md - Document management → Application database: reads and writes
backend/app/routes/storage.py - User → Web crawler: starts crawl
README.md - Web crawler → Document indexing: supplies content
README.md - Document management → Document indexing: indexes uploads
README.md - Document indexing → Application database: stores metadata
backend/vector/pipeline/__init__.py - Document indexing → Vector stores: stores vectors
README.md - Incremental reindexing → Document indexing: reindexes documents
- Search orchestration → Application database: records searches
README.md - Search orchestration → AI answer service: provides context
README.md - AI answer service → AI providers: requests answers
README.md - User → Analytics: views insights
README.md - Analytics → Application database: records behavior
README.md - User → Offline search: searches offline
README.md