We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
SentenceTransformerEmbed
PdfToMarkdown
1 parent d583981 commit b37aeb9Copy full SHA for b37aeb9
examples/pdf_embedding/pdf_embedding.py
@@ -11,7 +11,7 @@
11
class PdfToMarkdown(cocoindex.op.FunctionSpec):
12
"""Convert a PDF to markdown."""
13
14
-@cocoindex.op.executor_class(gpu=True)
+@cocoindex.op.executor_class(gpu=True, cache=True, behavior_version=1)
15
class PdfToMarkdownExecutor:
16
"""Executor for PdfToMarkdown."""
17
python/cocoindex/functions.py
@@ -16,7 +16,7 @@ class SentenceTransformerEmbed(op.FunctionSpec):
"""Run the sentence transformer"""
model: str
18
19
-@op.executor_class(gpu=True)
+@op.executor_class(gpu=True, cache=True, behavior_version=1)
20
class SentenceTransformerEmbedExecutor:
21
"""Executor for SentenceTransformerEmbed."""
22
0 commit comments