算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
serve-search【设计与创意】Use PixelRAG serve and search APIs for FAISS or Qdrant visual retrieval indexes.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task is to run pixelrag serve, query a PixelRAG search endpoint, debug search results, choose FAISS/Qdrant serving options, or integrate PixelRAG search into an agent.
Ensure an index exists. If not, use ../index-build/SKILL.md.
Start the API:
pixelrag serve --index-dir ./index --articles-json ./index/articles.json --tiles-dir ./index/tiles --port 30001
Check readiness:
curl -s http://localhost:30001/health
curl -s http://localhost:30001/status
Query:
curl -s -X POST http://localhost:30001/search \
-H "Content-Type: application/json" \
-d '{"queries":[{"text":"overview diagram"}],"n_docs":5}'
/health, /status, and optionally a text query.| Request | Action |
|---|---|
| "Serve this local index" | Use pixelrag serve --index-dir ... --articles-json ... --tiles-dir .... |
| "Search and include tile images" | POST /search with include_images: true; watch payload size. |
| "Use Qdrant" | Start with --backend qdrant --qdrant-url ... --collection ..., or let summary.json infer backend. |
| "Filter by department" | Call /departments, then pass department in /search; departments come from local-source subdirectories. |
| "Use precomputed embeddings" | Send queries: [{"embedding": [...]}] and do not mix with text/image queries in the same request. |
| "Render missing tiles on demand" | Use --render-on-demand --kiwix-url ... for Kiwix-backed indexes; expect slower first queries. |
/tile/... endpoints.