class VespaRetrieverRemoteRetrieverSerializableconst retriever = new VespaRetriever({
url: "https:
auth: false,
query_body: {
yql: "select content from paragraph where userQuery()",
hits: 5,
ranking: "documentation",
locale: "en-us",
},
content_field: "content",
});
const result = await retriever.getRelevantDocuments("what is vespa?");Class responsible for retrieving data from Vespa. It extends the
RemoteRetriever class and includes methods for creating the JSON body
for a query and processing the JSON response from Vespa.