Groq Cloud

Hyperfast LLM running on custom built GPU and the fastest interface in the world.

Integrate the Groq Cloud API with the LlamaIndex API

Setup the Groq Cloud API trigger to run a workflow which integrates with the LlamaIndex API. Pipedream's integration platform allows you to integrate Groq Cloud and LlamaIndex remarkably fast. Free for developers.

Trusted by 1,000,000+ developers from startups to Fortune 500 companies

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Create Chat Completion with the Groq Cloud API

Creates a model response for the given chat conversation. See the documentation

 
Try it

Connect Groq Cloud

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    groqcloud: {
      type: "app",
      app: "groqcloud",
    }
  },
  async run({steps, $}) {
    const data = {"messages": [{"role": "user", "content": "What is Pipedream?"}], "model": "llama3-8b-8192"}
    return await axios($, {
      method: "post",
      url: `https://api.groq.com/openai/v1/chat/completions`,
      headers: {
        Authorization: `Bearer ${this.groqcloud.$auth.api_key}`,
      },
      data,
    })
  },
})

Connect LlamaIndex

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import { axios } from "@pipedream/platform";
import FormData from "form-data";
import request from "request";

export default defineComponent({
  props: {
    llamaindex: {
      type: "app",
      app: "llamaindex",
    }
  },
  async run({steps, $}) {
    const data = new FormData();
    data.append("file", request("https://www.learningcontainer.com/wp-content/uploads/2019/09/sample-pdf-file.pdf")); 
    return await axios($, {
      method: "POST",
      url: `${this.llamaindex.$auth.url}/api/parsing/upload`,
      headers: {
        "Content-Type": `multipart/form-data`,
        Authorization: `Bearer ${this.llamaindex.$auth.api_key}`,
      },
      data,
    })
  },
})

Trusted by 1,000,000+ developers from startups to Fortune 500 companies

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo