Promise<Array<object>>: A Promise that resolves to an array of retrieved vector items, each containing the requested fields based on the include parameter.
The method returns an array of objects with the following structure:
Copy
Ask AI
// Example response with all fields[ { "id": "doc1", "vector": [0.1, 0.2, 0.3, 0.4], "contents": Buffer, // Always returned as Buffer (bytes) "metadata": { "title": "Document 1", "category": "research", "date": "2024-01-15" } }, { "id": "doc2", "vector": [0.4, 0.5, 0.6, 0.7], "contents": Buffer, // Always returned as Buffer (bytes) "metadata": { "title": "Document 2", "category": "tutorial", "date": "2024-01-16" } }]
The contents field is always returned as a Buffer (bytes), regardless of whether it was originally stored as a string or Buffer. All contents are encoded to bytes and encrypted before storage.