Jina 3.0.0 正式釋出,雲原生神經搜尋方塊架

2022-02-18 09:00:29

Jina 是一個神經搜尋方塊架,它使任何人都可以在幾分鐘內在雲上構建可延伸且可持續的神經搜尋系統

Jina 3.0.0 正式釋出,該版本的內容主要關於雲就緒和整合(cloud-readiness and integration),通過重構架構/通訊層,使 Executor 通訊更穩定,比以前版本更具可延伸性和健壯性。

Executors: 試用功能

使用 Jina 的,甚至不需要從 下載 Executor 來測試。只需使用 jinahub+sandbox://ExecutorName,就可以在雲上執行該 Executor

這意味著可以更快地評估 Executors ,以找到適合的執行程式,無需下載任何內容或使用本地計算。

from docarray import Document
from jina import Flow

flow = Flow().add(uses='jinahub+sandbox://Hello')

with flow:
  docs = flow.post('/', inputs=Document(text='world'))
  print(docs.texts)

Flow:使用 Kubernetes 和 Docker Compose 執行

  • 使用 Flow .to_k8s_yaml('./k8s_flow') 從一個 Flow 中生成一組部署的 YAML 檔案,然後使用 Kubernetes 和 kubectl 來啟動和協調 Executors。
  •  使用 flow.to_docker_compose_yaml() 一個 Flow 中生成一個 docker-compose.yml 檔案,然後執行 docker-compose up 

DocumentArray:視覺化、共用、檔案儲存

該版本將 Jina 的 DocumentArray 拆分為自己的  包,讓 Jina 專注於擴充套件雲上的非結構化資料處理:

2.x

from jina import Document, DocumentArray, Flow

3.0

from docarray import Document, DocumentArray
from jina import Flow

這意味著 Jina 受益於 3.0 版本在 Document 和 DocumentArray 中所做的所有改進,包括和對的支援。

要了解 Jina 3.0.0 的更多資訊,請檢視、和。

新特性

  • [ ] -推播後新增沙箱()
  • [ ] -新增 blacken docs 到 precommit (  )
  • [ ] - hub:將 --verbose 選項新增到「jina hub push」cli (  )
  • [ ] - 沙箱:使用給定埠()
  • [ ] - hubble:升級到 hubble api v2 (  )
  • [ ] -從 k8s 中隱藏更多引數並編寫 yamls (  )
  • [ ] -更改從 Executors 返回引數的方式 (  )
  • [ ] -使用來自 k8s 的外部 pod (  )
  • [ ] -將 docarray 整合為外部依賴項 (  )
  • [ ] -支援 jinahub+sandbox (  )
  • [ ] -將流程匯出到 docker compose yaml (  )
  • [ ] -Flow 後返回 DocumentArray (  )
  • [ ] -將 Flow 匯出到 k8s yamls 集()
  • [ ] -星形路由 (  )

更多內容請檢視更新公告:

展開閱讀全文