MCPcopy Index your code
hub / github.com/FirebaseExtended/codelab-ai-genkit-rag

github.com/FirebaseExtended/codelab-ai-genkit-rag @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
77 symbols 186 edges 66 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Build gen AI features powered by your data with Firebase Genkit

This is the code for Build gen AI features powered by your data with Firebase Genkit codelab.

Getting Started

First, update src/lib/genkit/genkit.config.js with your own Firebase project id and login using gcloud auth application-default login. See Genkit documentation for more information.

Then install the dependencies:

npm install

Then run Genkit UI standalone sandbox:

npm run dev:genkit

Alternatively, run Genkit UI alongside the Next.js development server:

npm run dev

Open http://localhost:4000 with your browser to lauch Genkit UI.

Open http://localhost:3000 with your browser to see the Next.js app.

You can start editing the app by modifying genkit-functions/src/lib/itineraryFlow.ts, src/app/gemini/page.tsx. The page auto-updates as you edit the file.

Extension points exported contracts — how you extend this code

Activity (Interface)
(no doc)
src/lib/genkit/types.ts
DataWithEmbedding (Interface)
(no doc)
load-firestore-data/index.ts

Core symbols most depended-on inside this repo

useFormattedDates
called by 4
src/lib/hooks/useFormattedDates.tsx
getProjectId
called by 3
src/lib/genkit/genkit.config.ts
format
called by 3
src/lib/hooks/useFormattedDates.tsx
toggleSelected
called by 3
src/app/legacy/activities/page.tsx
step
called by 3
load-firestore-data/index.js
useDestination
called by 2
src/lib/useDestination.ts
toggleDestination
called by 1
src/components/DestinationCarousel.tsx
getActivitesByDay
called by 1
src/lib/activities.ts

Shape

Function 75
Interface 2

Languages

TypeScript100%

Modules by API surface

load-firestore-data/index.js8 symbols
load-firestore-data/index.ts5 symbols
src/lib/hooks/useImageUpload.tsx3 symbols
src/components/GuestStepper.tsx3 symbols
src/app/legacy/activities/page.tsx3 symbols
src/lib/itinerary.ts2 symbols
src/lib/hooks/useFormattedDates.tsx2 symbols
src/lib/hooks/useCardScroll.tsx2 symbols
src/lib/genkit/placesRetriever.ts2 symbols
src/components/DestinationCarousel.tsx2 symbols
src/lib/useDestinations.ts1 symbols
src/lib/useDestination.ts1 symbols

For agents

$ claude mcp add codelab-ai-genkit-rag \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact