Clip
            ClipCompareResponse
¶
    
              Bases: InferenceResponse
Response for CLIP comparison.
Attributes:
| Name | Type | Description | 
|---|---|---|
similarity | 
            
                  Union[List[float], Dict[str, float]]
             | 
            
               Similarity scores.  | 
          
time | 
            
                  float
             | 
            
               The time in seconds it took to produce the similarity scores including preprocessing.  | 
          
Source code in inference/core/entities/responses/clip.py
                26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42  |  | 
            ClipEmbeddingResponse
¶
    
              Bases: InferenceResponse
Response for CLIP embedding.
Attributes:
| Name | Type | Description | 
|---|---|---|
embeddings | 
            
                  List[List[float]]
             | 
            
               A list of embeddings, each embedding is a list of floats.  | 
          
time | 
            
                  float
             | 
            
               The time in seconds it took to produce the embeddings including preprocessing.  | 
          
Source code in inference/core/entities/responses/clip.py
                8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23  |  |