with Google PaLM and Nasdaq Data Link (Time Series and Table data)?
Generate embeddings using Google PaLM. See the docs here
The Google PaLM API is a cutting-edge language model that allows developers to integrate advanced natural language understanding into their applications. On Pipedream, you can harness this power to create serverless workflows that react to various triggers and perform actions based on the insights and outputs from PaLM. Whether it's generating content, summarizing text, or understanding user intent, PaLM's capabilities can be integrated into Pipedream workflows to automate complex tasks involving language.
import { v1beta2 } from "@google-ai/generativelanguage";
import { GoogleAuth } from "google-auth-library";
export default defineComponent({
props: {
google_palm_api: {
type: "app",
app: "google_palm_api",
}
},
async run({ steps, $ }) {
const client = new v1beta2.TextServiceClient({
authClient: new GoogleAuth().fromAPIKey(this.google_palm_api.$auth.palm_api_key),
});
const text = "Repeat after me: one, two,";
const model = "models/text-bison-001";
return await client
.generateText({
model,
prompt: {
text,
},
})
},
})
The Nasdaq Data Link API provides access to financial, economic, and alternative data that powers investment decisions, research, and more. Within Pipedream, you can use this API to automate workflows involving time series and table data. This might include fetching stock prices, economic indicators, or data for quantitative analysis. By creating workflows that trigger on schedules or events, you can efficiently process and act upon this data. Combine it with other apps to gain insights, notify stakeholders, or integrate with your databases.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
nasdaq_data_link_time_series_and_table_data_: {
type: "app",
app: "nasdaq_data_link_time_series_and_table_data_",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://data.nasdaq.com/api/v3/datatables/ETFG/FUND.json`,
params: {
api_key: `${this.nasdaq_data_link_time_series_and_table_data_.$auth.api_key}`,
},
})
},
})