Architecture
Aquifer is a headless engineering context layer deployed as a single AWS CDK (Python) stack inside your own VPC.
Documented pipeline
EventBridge → Discovery Lambda → SQS → Worker Lambda → Bedrock (embed) → OpenSearch Serverless
AI agents → MCP (HTTP/SSE) → Fargate MCP server → embed query + k-NN search
Stack composition
| Construct | Responsibility | | --- | --- | | Network | Private networking, NAT and interface endpoints | | Vector store | Amazon OpenSearch Serverless collection | | Ingestion | Discovery and Worker Lambdas, EventBridge schedule, SQS queue | | MCP service | AWS Fargate service behind an internal load balancer |
The pipeline
- Source → Document. A
Connectorfetches items page by page and normalises them into aDocument. - Semantic indexing. A hook extracts neutral metadata — typed entities, relationships and topics — using a model on your own Bedrock.
- Embedding and storage. Chunks are embedded and upserted into OpenSearch Serverless with metadata as queryable fields.
- Retrieval. The Fargate service exposes neutral retrieval tools over MCP.
Design rationale
- Modularity. Every layer depends on a narrow interface:
Connector,Embedder,VectorStore,Inferencer,SemanticIndexer,Interceptor. - Neutrality. The engine extracts facts; it does not draw conclusions.
- Right-sized compute. Ingestion runs on Lambda with SQS fan-out; the MCP API runs on Fargate for persistent connections.
Extension seam
Cross-cutting enterprise concerns such as SSO, RBAC and audit are not part of the open core. The
core exposes an Interceptor seam with pass-through defaults; enterprise capabilities are
implemented separately.
Canonical documentation: architecture docs