Skip to content

About

No description, website, or topics provided.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

56 Commits

Folders and files

Repository files navigation

Daedalus Context

Daedalus Context ingests documents, serves retrieval requests and provides Kubernetes and UniFi tools for Daedalus Agent. Each component owns its implementation, tests and Helm chart. The root Makefile coordinates deployments in a shared Kubernetes namespace. docker-compose.yaml defines the images to build and publish.

You can run source and chart checks locally without cluster credentials. Before installing on another cluster, review the reference profile's node names, GPU placement, storage classes, LAN settings and registry mirrors.

Start here

Goal Start with
Understand the integrated system Stack model
Develop or review a component Contributing
Install on a new cluster Deployment guide
Update, ingest, diagnose, or recover Operations guide
Prepare a public release Publication guide
Find a command and its side effects make help

For a first local check, install Python 3.12, GNU Make, Bash, and Helm 3, then run from this checkout:

python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install -r requirements-dev.txt
make validate-context

make validate-context checks the contracts, runs the Python contract tests and validates all seven charts locally. It needs no cluster connection, production credentials or Hindsight checkout. See Contributing for full source checks and tool versions.

For an already configured cluster, the service workflow is:

set -a
source .env
set +a
# EXPECTED_CONTEXT in .env must be an approved literal cluster context.
make deploy
make health-dependencies
make render-agent-env
# After configuring and deploying daedalus-agent:
make health-stack

Follow the deployment prerequisites first. make deploy validates the selected services, builds and publishes their locally owned images from the current checkout, reconciles releases, and checks provider health. Each build gets a unique versioned tag so existing workloads receive the new image. Existing storage and data are retained. Corpus publication and collection refresh remain separate operations.

Stack model

Context owns seven services and integrates with Hindsight as an eighth. Deploy the consumer, daedalus-agent, from its own repository.

Component selector Owner and guide Responsibility
milvus nim-milvus-ms Vector database, etcd, and MinIO object storage
retriever nemotron-retriever Query/document embeddings and optional reranking
nv-ingest nv-ingest Document extraction and local Nemotron parser
pdf-server pdf-server Versioned source PDF corpus and read-only HTTP serving
url-ingest url-ingest Source discovery, resumable refresh, embedding, and collection writes
k8s-mcp k8s-multicluster-mcp Authenticated Kubernetes tools
unifi-mcp unifi-network-mcp Authenticated UniFi tools
hindsight HINDSIGHT_ROOT / charts/daedalus-hindsight Durable memory, managed in the adjacent daedalus-hindsight repository
flowchart LR
    Sources[URLs and published PDFs] --> Refresh[URL ingestion]
    Refresh --> Extract[NV-Ingest and parser]
    Refresh --> Embed[Retriever embeddings]
    Refresh --> Store[Milvus and MinIO]
    Agent[daedalus-agent] --> Store
    Agent --> Embed
    Agent --> Rank[Optional reranker]
    Agent --> Memory[Hindsight]
    Agent --> Tools[Kubernetes and UniFi MCP]
    Agent --> Gateway[daedalus-switchyard]
    Gateway --> Model[Answering model]
    Agent --> Sandbox[daedalus-sandbox]
Loading

The Agent calls Context services and the sandbox directly. It scopes requests to the authenticated user, collects tool results and citations, and sends retrieved evidence to the answering model through Switchyard. Switchyard selects the model and handles transport.

The topology declares deployment dependencies and failure boundaries. The orchestrator orders selected dependencies, blocks their dependents on failure, and reports outcomes as JSON. It does not automatically add omitted dependencies: include them or establish that they are healthy.

Core chat can operate without context services. Existing search needs Milvus and embedding inference; it does not depend on the ingestion scheduler. Reranking is optional. Ingestion failures affect new content while preserving existing search. Optional MCP failures do not disable retrieval.

Configuration

Use one root .env, based on .env.example, for operator settings. Component-local .env files are not deployment inputs. Hindsight is the exception: its owning repository manages its own runtime credentials.

Authority What belongs there
Makefile and root .env Workflow selection, operator overrides, image references, context guard
stack/topology.yaml Service ownership, endpoints, dependencies, failure policy
stack/components.lock.yaml Reviewed release inventory and model revisions
stack/environments Acceptance policy and required collections
stack/rag-schema.yaml Embedding space, database, dimensions, ranking contract
stack/collections.yaml Collection aliases, schedules, chunking, freshness
Each component's chart/ Kubernetes resources and component configuration
docker-compose.yaml Local image build contexts and publish references

ENVIRONMENT=development selects a different acceptance policy; it does not select smaller charts or replace hardware settings. The supported shared namespace is daedalus. Read the configuration and override rules before adapting the reference deployment.

Daedalus integration

make render-agent-env prints the non-secret consumer contract derived from the stack files. Merge it into the Agent's deployment configuration and supply matching credentials through your secret-management process. When the Agent Helm chart has retrieval.enabled: true, copy MILVUS_URI and MILVUS_DATABASE to retrieval.milvus.endpoint and retrieval.milvus.database. Map readiness mode and required collections to retrieval.readiness.mode and retrieval.readiness.requiredCollections. Those chart values take precedence over duplicate generic backend environment overrides. Other service URLs and model settings go into the Agent environment consumed by its workflow. The ingestion consumer uses NV_INGEST_HOST and NV_INGEST_PORT; NV_INGEST_ENDPOINT is also emitted for URL-based integrations. Merge these settings into every Agent worker that ingests documents. Private upload storage and its credentials remain part of the Agent deployment, separate from curated collection refreshes.

Keep the generated EMBEDDING_MODEL and EMBEDDING_NIM_MODEL_NAME aligned. The first selects query embeddings; the Agent records the second as the upload collection's embedding model identity. Configure backend egress and service ingress as well as URLs: generating an endpoint does not grant network access.

For a complete integration check, ask the Agent to search a configured domain for a passage known to be in that collection. Follow the query through embeddings, Milvus and optional reranking, then check the returned source citation. Test a private upload separately: successful curated search does not exercise upload extraction, user scope, collection metadata or object storage.

Query and document embeddings must use the same model revision and vector space. Equal dimensions alone do not establish compatibility. Daedalus uses /rerank; NIM-compatible clients use /v1/ranking. Reranker scores are raw logits, so probability thresholds need model-specific calibration.

Validate provider readiness, dependency/data health, and consumer requests separately. See health and diagnostics. For changes that cross into Agent, Switchyard, Sandbox, Hindsight or Dynamo, use the parent monorepo's .agents/skills/daedalus-co-design/ workflow alongside the Context maintenance skill. You can validate Context on its own.

Continuous refresh and embedding generations

Deploying services does not populate collections. Publish source PDFs, submit explicit collection refreshes, inspect completion and retrieval, then enable schedules. Data operations describes the commands and their effects; URL ingestion defines resume, replacement, deletion, and freshness behavior.

Development

Contributing covers dependencies, tests, generated files, and changes spanning components. CI validates owned code and charts without a live cluster. make validate-local adds full source checks and disposable builds; make validate-cluster is a separate guarded, read-only cluster gate.

Agent instructions live in AGENTS.md and the repository's operate-daedalus-context skill.

License

A license for the repository's original code has not been selected. Existing third-party notices remain in force for the material they describe. See the publication guide before distributing code, images, or data.

About

No description, website, or topics provided.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages