How Informers pipelines work
masterInformers uses a pipeline abstraction to perform various machine learning tasks. You initialize a pipeline by specifying a task type (e.g., embedding, reranking, text-generation) and optionally a model identifier. Once initialized, the pipeline object is a callable that accepts inputs (text, images, or audio) and returns the processed results.
Common task types include:
- Text:
embedding,reranking,ner,sentiment-analysis,question-answering,zero-shot-classification,text-generation,text2text-generation,translation,summarization,fill-mask,feature-extraction. - Vision:
image-classification,zero-shot-image-classification,image-segmentation,object-detection,zero-shot-object-detection,depth-estimation,image-to-image,image-feature-extraction. - Audio:
audio-classification. - Multimodal:
image-to-text,document-question-answering.
# Example of a text embedding pipeline
model = Informers.pipeline("embedding", "sentence-transformers/all-MiniLM-L6-v2")
embeddings = model.(["Hello world", "How are you?"])