Skip to content

Instantly share code, notes, and snippets.

@zerothabhishek
Last active July 5, 2024 13:07
Show Gist options
  • Save zerothabhishek/3f9ff5d5ca83c734241095c88875e2d2 to your computer and use it in GitHub Desktop.
Save zerothabhishek/3f9ff5d5ca83c734241095c88875e2d2 to your computer and use it in GitHub Desktop.
Prep: Building AI Agents with RAG and Function Calling

The workshop: https://lu.ma/6lrnyo1b
Please bring your own laptops.

Tech/Tools to be used: Nextjs, Supabase, OpenAI
Discussions: Discord

What we'll build

An RAG application which can ingest and search through a given documentation and answers questions. The app will be a chat UI that will use the Marvel Universe wiki as data source.

Things to install and setup

1. Install Node.js and Next.js

Node.Js (>= v18) : Installation
Next.js: Installation

If you're using Windows, a WSL setup too may be needed.

2. Get a free account on Supabase

Link: supabase.com

  • We need a Postgresql database with the extension pgvector installed.
  • Create account on supabase.com gives us a free Postgresql instance with pg_vector
  • Or install the db locally with the extension

3. Get OpenAI keys

We need to make calls to the OpenAI APIs in some steps

In case you're unable to pay for OpenAI, please sign-up for TuneStudio. The TuneAI team has agreed to share free credits with the participants


Facing issues: ask us on Discord

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment