brainstorming
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).
search-retrievalGuides CLIP-as-service search flows with CLIPEncoder plus AnnLite indexing, querying, dimensions, sharding, and retrieval troubleshooting.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when the user wants CLIP-as-service to index a corpus and search across text/image embeddings, usually with a Jina Flow containing CLIPEncoder followed by AnnLiteIndexer.
search_flow.yml for CLIPEncoder + AnnLiteIndexer."n_dim be for ViT-L-14?"/search return incomplete results in a sharded Flow?"Client.index and Client.search after starting a search server."n_dim, workspace, sharding, and polling.clip_client.Client input/output behavior, callbacks, async methods, authentication, and connectivity errors.A search Flow has two stages:
CLIPEncoder converts incoming text/image documents into embeddings.AnnLiteIndexer stores and retrieves vectors with a dimension matching the selected CLIP model.The client does not call encode() explicitly before indexing; Client.index() sends documents through the Flow and the encoder fills embeddings before the indexer stores them.
from clip_client import Client
from docarray import Document
client = Client("grpc://127.0.0.1:61000")
client.index([
Document(id="caption-1", text="a photo of a red car"),
Document(id="caption-2", text="a photo of a blue bicycle"),
])
results = client.search(["red vehicle"], limit=2)
for match in results[0].matches:
print(match.id, match.scores)
n_dim to the chosen CLIP model output dimension. Default ViT-B-32::openai uses 512.workspace for persistent indexes. Changing model dimension or incompatible indexer configuration requires rebuilding.ANY polling for /index so each document is indexed once; use ALL for /search so queries reach all shards.clip-server[search] extra or an environment with AnnLite installed.python sub-skills/search-retrieval/scripts/check_search_config.py sub-skills/search-retrieval/scripts/search-flow.yml --model-name ViT-B-32::openai
Then start a service only after the user approves model downloads and long-running server processes.