How learnware-lamda/beimingwu works
Beimingwu is a learnware dock: developers submit models with specifications, and users search for and reuse suitable learnwares. The main web app supports requirement entry, search results, submission, account features, and learnware details; a separate admin app exposes management views. The backend provides API routes, database operations, and a learnware engine. README capabilities include specification generation, quality inspection, semantic/statistical search, heterogeneous matching, and local deployment. Some processing subsystems are documented but not sampled, so uncertain internal wiring is omitted.
Main entry points: index.ts Main API client · context.py Runtime context · restful/engine.py Learnware API · lib/engine.py Search and validation
Components 22
Web interfaces
- Search and reuse
frontend/packages/main/src/views/Search.vue - Submit learnware
frontend/packages/main/src/views/Submit.vue - Learnware details
frontend/packages/main/src/views/LearnwareDetail.vue - Account features
frontend/packages/main/src/views/ClientToken.vue - Admin console
frontend/packages/admin/src/views/Users.vue - Main API client
frontend/packages/main/src/request/index.ts - Admin API client
frontend/packages/admin/src/utils/fetchex.ts
Backend APIs
- Authentication API
backend/restful/auth.py - User API
backend/restful/user.py - Dataset API
backend/restful/datasets.py - Learnware API
backend/restful/engine.py - Admin API
backend/restful/admin.py
Learnware processing
- Search and validation
backend/lib/engine.py - Learnware market
- Quality inspection
backend/lib/engine.py
State and storage
- Domain data operations
backend/lib/database_operations.py - Backend database
backend/database/sqlalchemy.py - Runtime context
backend/context.py - Redis services
backend/lib/redis_utils.py
Other components
- Learnware user
- Model developer
- System admin
Connections 23
- Learnware user → Search and reuse: enter requirements
- Learnware user → Learnware details: inspect results
- Model developer → Submit learnware: submit model
- System admin → Admin console: manage system
- Search and reuse → Main API client: request search
- Submit learnware → Main API client: send submission
- Learnware details → Main API client: request details
- Account features → Main API client: manage tokens
- Main API client → Learnware API: call endpoints
- Main API client → Authentication API: call endpoints
- Main API client → User API: call endpoints
- Main API client → Dataset API: call endpoints
- Admin console → Admin API client: manage records
- Admin API client → Admin API: call endpoints
- Learnware API → Runtime context: access runtime
- Learnware API → Domain data operations: read metadata
- Learnware API → Redis services: resolve download tokens
- Runtime context → Backend database: initialize store
- Runtime context → Learnware market: initialize market
- Runtime context → Search and validation: configure engine
- Search and validation → Quality inspection: validate uploads
- Search and validation → Learnware market: search learnwares
- Domain data operations → Runtime context: use database handle