VectorsRead
Source:
src/AWS/S3Vectors/VectorsRead.ts
Read-only runtime binding for the S3 Vectors data plane — query, get, and
list vectors in a bound Index.
Grants only s3vectors:QueryVectors, s3vectors:GetVectors, and
s3vectors:ListVectors on exactly the bound index’s ARN — the
least-privilege choice for retrieval-only consumers (e.g. a RAG search
endpoint that never writes embeddings). Provide the implementation with
Effect.provide(AWS.S3Vectors.VectorsReadHttp).
Reading Vectors
Section titled “Reading Vectors”// initconst vectors = yield* AWS.S3Vectors.VectorsRead(index);
// runtimeconst result = yield* vectors.query({ topK: 5, queryVector: { float32: [0.1, 0.2, 0.3] }, returnDistance: true,});