What’s the easiest way to return a full document from firestore in this retriever (screenshot from Genkit docs)?
My best guess is in the metadata field, so doing something like:
const vectorQuerySnapshot = await vectorQuery.get();
return {
documents: vectorQuerySnapshot.docs.map((doc) =>
// doc.data() represents the Firestore document. You may process it as needed to generate
// a Genkit document object, depending on your storage format.
Document.fromText(doc.data().title.title_original, doc.data())
),
};