with Prepr (GraphQL) and Weaviate?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
prepr_graphql: {
type: "app",
app: "prepr_graphql",
}
},
async run({steps, $}) {
const data = {
"query": `query {
Posts {
items {
_id
title
}
}
}`,
}
return await axios($, {
method: "post",
url: `https://graphql.prepr.io/${this.prepr_graphql.$auth.access_token}`,
data,
})
},
})
Weaviate is a cloud-native, modular, real-time vector search engine that enables scalable, high-performance semantic search. It's built for a wide range of applications, from autocomplete and similar object suggestions to full-text search and automatic categorization. With the Weaviate API, you can index and search through large amounts of data using machine learning models to understand the content and context of the data. On Pipedream, you can leverage this API to create serverless workflows that automate data ingestion, enrichment, and search capabilities, enhancing your apps with intelligent search functions.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
weaviate: {
type: "app",
app: "weaviate",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.weaviate.$auth.cluster_url}//v1/schema`,
headers: {
Authorization: `Bearer ${this.weaviate.$auth.api_key}`,
},
})
},
})