MCPcopy Create free account
hub / github.com/developersdigest/Groq-API-Quick-Guide-with-Examples-Groq-SDK-Langchain-LlamaIndex-OpenAI-SDK-Vercel

github.com/developersdigest/Groq-API-Quick-Guide-with-Examples-Groq-SDK-Langchain-LlamaIndex-OpenAI-SDK-Vercel @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
36 symbols 77 edges 28 files 0 documented · 0% updated 2y ago★ 44

Browse by type

Functions 36 Types & classes 0
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Groq API Interaction Examples

This repository contains examples demonstrating how to interact with the Groq API using Node.js. Each example is based on a tutorial from a YouTube video that guides you through the process of setting up and making the most of Groq's inference API, the OpenAI SDK, Langchain, Llama Index, and Vercel AI SDK.

Tutorial Video

For a step-by-step guide, watch the tutorial on YouTube that walks you through each example: YouTube Video Link

Prerequisites

Before you begin, make sure you have the following installed: - Node.js / Bun

You'll also need API keys from: - Groq Platform - OpenAI (For RAG Llamaindex example)

Getting Started

To get started with the examples, clone this repository to your local machine:

git clone [[repository-url]](https://github.com/developersdigest/Groq-API-Quick-Guide-with-Examples-Groq-SDK-Langchain-LlamaIndex-OpenAI-SDK-Vercel)
cd [Groq-API-Quick-Guide-with-Examples-Groq-SDK-Langchain-LlamaIndex-OpenAI-SDK-Vercel]

Install the required dependencies for each example:

cd 1-groq-sdk
bun install

Examples

The repository is structured with separate directories for each example, as outlined below:

1. Groq SDK Example

Located in 1-groq-sdk. This example covers the basics of setting up and using the Groq SDK.

2. OpenAI SDK Example

Located in 2-openai-sdk. This example demonstrates how to utilize the OpenAI SDK in conjunction with Groq.

3. Langchain Integration

Located in 3-langchain. Here, we show how to integrate Langchain with the Groq API.

4. Llama Index Usage

Located in 4-llamaindex. Explore how to use Llamaindex to enhance your applications with Groq.

5. Vercel AI SDK Example

Located in 5-vercel-ai-sdk. Learn to set up and use the Vercel AI SDK with Groq.

Documentation

For more detailed information about the Groq API and related SDKs, refer to the following resources:

Core symbols most depended-on inside this repo

browse all functions →

Shape

Function 36

Languages

TypeScript100%

Modules by API surface

5-vercel-ai-sdk/next-openai-app/app/stream-react-response/action.tsx4 symbols
5-vercel-ai-sdk/next-openai-app/app/api/chat-with-tools/route.ts3 symbols
5-vercel-ai-sdk/next-openai-app/app/api/chat-with-functions/route.ts3 symbols
5-vercel-ai-sdk/next-openai-app/app/tool-calling/page.tsx2 symbols
5-vercel-ai-sdk/next-openai-app/app/server-components/page.tsx2 symbols
5-vercel-ai-sdk/next-openai-app/app/function-calling/page.tsx2 symbols
5-vercel-ai-sdk/next-openai-app/app/api/completion/route.ts2 symbols
5-vercel-ai-sdk/next-openai-app/app/api/assistant/route.ts2 symbols
5-vercel-ai-sdk/next-openai-app/app/vision/page.tsx1 symbols
5-vercel-ai-sdk/next-openai-app/app/stream-react-response/page.tsx1 symbols
5-vercel-ai-sdk/next-openai-app/app/stream-react-response/layout.tsx1 symbols
5-vercel-ai-sdk/next-openai-app/app/stream-react-response/chat.tsx1 symbols

For agents

$ claude mcp add Groq-API-Quick-Guide-with-Examples-Groq-SDK-Langchain-LlamaIndex-OpenAI-SDK-Vercel \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page