You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all,
I'm a beginner in Haystack :) May I ask in this tutorial sentencetransformerstextembedder in pipeline, is it possible to run the pipeline with multiple queries at once? By which I mean the following run of the pipeline in this tutorial:
result = query_pipeline.run({"text_embedder":{"text": query}})
I see 'run_batch' feature, but seems it was in Haystack version < 2.0.
And I see in the __init__() interface of class SentenceTransformersTextEmbedder there is a parameter batch_size: int = 32, but I'm not sure if it's exactly what I'm looking for, and I could not find a tutorial with its usage either.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi all,
I'm a beginner in Haystack :) May I ask in this tutorial sentencetransformerstextembedder in pipeline, is it possible to run the pipeline with multiple queries at once? By which I mean the following run of the pipeline in this tutorial:
I see 'run_batch' feature, but seems it was in Haystack version < 2.0.
And I see in the
__init__()
interface of classSentenceTransformersTextEmbedder
there is a parameterbatch_size: int = 32
, but I'm not sure if it's exactly what I'm looking for, and I could not find a tutorial with its usage either.Thanks for any help!
Beta Was this translation helpful? Give feedback.
All reactions