Skip to content

Add Antfly Cloud templates - #3

Open
dovinmu wants to merge 6 commits into
mainfrom
codex/templates
Open

Add Antfly Cloud templates#3
dovinmu wants to merge 6 commits into
mainfrom
codex/templates

Conversation

@dovinmu

@dovinmu dovinmu commented Jun 25, 2026

Copy link
Copy Markdown

Summary

  • introduce templates/ as AGENTS-first Antfly Cloud starter packs
  • add MediaAF for image/moving-image semantic search via LLM-generated text descriptions
  • add DocsAF Cloud wrapper around the existing DocsAF source-document flow

Validation

  • make -C templates/mediaaf
  • make -C templates/docsaf
  • python3 -m py_compile templates/mediaaf/transforms/*.py templates/mediaaf/scripts/local_proxy.py templates/mediaaf/ingest/image-to-text/describe.py templates/mediaaf/ingest/embed-text-descriptions/embed.py templates/docsaf/scripts/*.py
  • cd templates/mediaaf/web && pnpm install --ignore-scripts && pnpm test:run && pnpm build
  • cd go && GOWORK=off GOCACHE=/tmp/antfly-cloud-go-build-cache go test ./...

Notes

  • Session Searcher was split out to codex/session-searcher-gliner2 for a separate GLiNER2 enrichment PR.
  • Full top-level make test may still hit local pnpm build-script approval policy; targeted checks above pass.

@dovinmu
dovinmu marked this pull request as ready for review June 25, 2026 15:35
@dovinmu
dovinmu marked this pull request as draft June 25, 2026 15:38
@dovinmu
dovinmu marked this pull request as ready for review June 25, 2026 23:50
@ajroetker

Copy link
Copy Markdown
Contributor

After a first pass it seems these are a bit more like examples/ rather than templates/

Templates should probably be mostly executable without code or via a distributable cli, e.g. the mediaaf requires python scripts to execute the tagging rather than using antfly enrichments (which is fine but probably more of an example than would belong in antfly rather than a user of antfly cloud who may or may not have the ability to run code in production themselves).


Antfly Cloud templates are starter packs for building searchable applications on top of hosted Antfly instances.

DocsAF stores source-document rows. Antfly derives document units, chunks, embeddings, full-text indexes, and hierarchy artifacts from those source rows.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The docsaf is closer to a template than mediaaf is here, although it makes me think maybe we make docsaf available as a cli in our homebrew/releases? as an extension or cli extension

if raw.strip() and not raw.strip().startswith('#') and '=' in raw:
k, v = raw.split('=', 1); os.environ.setdefault(k.strip(), v.strip().strip('"').strip("'"))
base = os.environ.get('ANTFLY_URL', '').rstrip('/')
key = os.environ.get('ANTFLYDB_API_KEY', '')

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ANTFLY_CLOUD_API_KEY or ANTFLY_API_KEY or ANTFLY_TOKEN probably

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants