awswrangler.s3.put_vectors

awswrangler.s3.put_vectors(*, vectors: list[dict[str, Any]], vector_bucket: str | None = None, vector_bucket_arn: str | None = None, index: str | None = None, index_arn: str | None = None, use_threads: bool | int = True, boto3_session: Session | None = None) None

Insert one or more vectors into an Amazon S3 Vectors index.

Parameters:
  • vectors (list[dict[str, Any]]) – List of dicts, each shaped {"key": str, "data": list[float] | dict[str, list[float]] | np.ndarray, "metadata": dict | None}. data is automatically cast to float32. Up to 500 vectors per underlying API call.

  • index_arn (vector_bucket / vector_bucket_arn / index /) – Target index. See module docstring for resolution rules.

  • use_threads (bool | int) – Concurrency for batched calls.

  • boto3_session (Session | None) – The default boto3 session will be used if boto3_session is None.

Return type:

None