使用 建立向量內嵌和執行語意搜尋 s3vectors-embed-cli - Amazon Simple Storage Service

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

使用 建立向量內嵌和執行語意搜尋 s3vectors-embed-cli

注意

Amazon S3 Vectors 為 Amazon Simple Storage Service 的預覽版本,可能會有所變更。

Amazon S3 Vectors 提供稱為 Amazon S3 Vectors Embed CLI (s3vectors-embed-cli) 的獨立開放原始碼工具,可將內嵌產生與向量操作結合到單一命令中,以簡化向量資料的使用。此 CLI 工具透過使用 Amazon Bedrock 基礎模型自動產生向量內嵌,以及向量索引中的語意搜尋操作,協助您快速開始使用 S3 向量。

S3 Vectors Embed CLI 提供兩個主要命令,用於整合 Amazon Bedrock 內嵌模型與 S3 Vectors 操作:

  • s3vectors-embed put:產生向量內嵌並將其插入向量索引。具體而言,透過 Amazon Bedrock 模型將文字和影像轉換為向量內嵌,並自動將其存放在向量索引中。

  • s3vectors-embed query:透過向量索引中的 Amazon Bedrock 模型和查詢向量,從查詢輸入產生向量內嵌。

Amazon S3 Vectors Embed CLI 可在 Amazon Web Services - 實驗室 GitHub 儲存庫中使用。如需詳細安裝指示、命令參數、範例和最佳實務,請參閱 Amazon S3 Vectors Embed CLI GitHub 儲存庫

如需提供更多控制和自訂的較低層級 S3 Vectors API 操作,請參閱《Amazon Simple Storage Service API 參考》中的 Amazon S3 Vectors