Skip to content

Simple CLIP application based on Jina AI in microservice structure

Notifications You must be signed in to change notification settings

GTkernel/jina-clip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CLIP application with Jina AI

The configuration/deployment files and codes are based on the official documentations of Jina. Here has more idea of CLIP. Please refer to them for up-to-date setup and information.

The goal of this project is to generate AI process and traffic in microservice deployment.

Introduction

This repo have three sets of files:

  • Containerized components of CLIP: ./Indexer and ./CLIPEncoder
  • K8s config files generator: gen_k8s_yaml.py
  • User-side functions: client.py and flow_client.py

The deploying processes are:

  1. Build docker images
  2. Generate K8s config files
  3. Run microservice in K8s
  4. Fire client requests for benchmarking

How to start

Prerequisite

It is recommended to use Python virtual environment, and then install the required packages by below command:

$ virtualenv -p python3 venv

$ . ./venv/bin/active

(venv) $ pip install jina

Build images

Generate K8s files

Uncomment/comment the part of components in the file gen_k8s_yaml.py and run it directly.

(venv) $ python gen_k8e_yaml.py

About

Simple CLIP application based on Jina AI in microservice structure

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published