MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / embed_batch

Function embed_batch

skills/embedding/scripts/embed.py:573–574  ·  view source on GitHub ↗
(texts: List[str])

Source from the content-addressed store, hash-verified

571
572 for pairs in batch_results:
573 for index, embedding in pairs:
574 results[index] = embedding
575 self._save_cached(normalized_texts[index], embedding)
576 except Exception as exc:
577 print(f"Batch embedding error ({self.provider}:{self.model}): {exc}")

Callers 1

prepare_paper_featuresFunction · 0.85

Calls 2

get_embedding_serviceFunction · 0.85
embed_batchMethod · 0.45

Tested by

no test coverage detected