c3f3b822f1
- Use CF Workers AI bge-base-en-v1.5 for embeddings - Deploy stores capability embedding in KV - Query uses cosine similarity (find) and MMR (explore) - Query embedding cached in KV (1h TTL) - Fallback to string matching for capabilities without embeddings - Mock embedding service for unit tests
22 lines
545 B
TOML
22 lines
545 B
TOML
name = "sigil"
|
|
main = "src/index.ts"
|
|
compatibility_date = "2026-04-03"
|
|
|
|
[[kv_namespaces]]
|
|
binding = "SIGIL_KV"
|
|
id = "9943c8873e724b0fb2cf24b4475e5a52"
|
|
|
|
[ai]
|
|
binding = "AI"
|
|
|
|
[vars]
|
|
SIGIL_ENV = "production"
|
|
|
|
# Worker Secrets (set via `wrangler secret put`, never committed to source):
|
|
# CF_API_TOKEN - Cloudflare API token with Workers:Edit permission
|
|
# CF_ACCOUNT_ID - Cloudflare Account ID
|
|
#
|
|
# To configure:
|
|
# echo "$CF_API_TOKEN" | npx wrangler secret put CF_API_TOKEN
|
|
# echo "$CF_ACCOUNT_ID" | npx wrangler secret put CF_ACCOUNT_ID
|