Browse Source
        
      
      Update README
      
        Signed-off-by: Jael Gu <mengjia.gu@zilliz.com>
      
      
        main
      
      
     
    
    
    
	
		
			
				 1 changed files with 
3 additions and 
5 deletions
			 
			
		 
		
			
				- 
					
					
					 
					README.md
				
 
			
		
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
			
				| 
					
					
						
							
						
					
					
				 | 
				@ -33,12 +33,10 @@ to generate a text embedding for the sentence "Hello, world.". | 
			
		
		
	
		
			
				 | 
				 | 
				*Write the pipeline*: | 
				 | 
				 | 
				*Write the pipeline*: | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				```python | 
				 | 
				 | 
				```python | 
			
		
		
	
		
			
				 | 
				 | 
				from towhee import dc | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				import towhee | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				dc.stream(["Hello, world."]) \ | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				  .text_embedding.longformer(model_name=c"allenai/longformer-base-4096") \ | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				  .to_list() | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				towhee.dc(["Hello, world."]) \ | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				      .text_embedding.longformer(model_name=c"allenai/longformer-base-4096") | 
			
		
		
	
		
			
				 | 
				 | 
				``` | 
				 | 
				 | 
				``` | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				<br /> | 
				 | 
				 | 
				<br /> | 
			
		
		
	
	
		
			
				| 
					
						
							
						
					
					
					
				 | 
				
  |