Actions7
Get Document
AI-generatedSummary
The Get Document operation retrieves a single document by its ID from an Oracle Vector Store collection, returning its content, embedding, metadata, and timestamps, or an error if not found.
Inputs
- collectionName — Name of the Oracle table (collection) holding vector documents. Defaults to VECTOR_STORE.
- documentId (required) — The ID of the document to fetch.
Output shape
Array
Returns a single-element array. On success: an object with id, content, embedding (number[]), metadata (parsed JSON or null), createdAt, updatedAt, and operation:'getDocument'. On failure (document not found): an object with success:false, message, and operation:'getDocument'.
Examples
Example 1: Fetch existing document
collectionName: 'my_docs', documentId: 'doc123', valid Oracle credentials supplied via node credentials. Result: [{'id':'doc123','content':'Example text','embedding':[0.12,-0.03,...],'metadata':{'source':'web','lang':'en'},'createdAt':'2025-08-27T14:32:10.000Z','updatedAt':'2025-08-27T14:32:10.000Z','operation':'getDocument'}]
Example 2: Document not found
Same config but ID absent. Result: [{'success':false,'message':'Documento com ID doc999 não encontrado','operation':'getDocument'}]}],
Example 3: Invalid ID type
If documentId is empty, the underlying SQL will likely return no rows, yielding the not-found object.