-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from nozomi-koborinai/feature/update-prompts
Update prompts
- Loading branch information
Showing
27 changed files
with
510 additions
and
275 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,4 +68,6 @@ node_modules/ | |
# dataconnect generated files | ||
.dataconnect | ||
|
||
.vscode | ||
lib | ||
.vscode | ||
.genkit |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,74 @@ | ||
# firebase-genkit-sample | ||
|
||
## Article | ||
- [English](https://medium.com/@kobofender/orchestrating-firebase-and-ai-8-genkit-architecture-patterns-12e44db40345) | ||
- [Japanese](https://zenn.dev/nozomi_cobo/articles/genkit-architecture) | ||
A sample project demonstrating AI applications using Firebase Cloud Run functions (2nd generation) and Genkit. | ||
|
||
## Directory Structure | ||
## 🚀 Features | ||
|
||
- Image Analysis (Google AI) | ||
- Web Content Analysis (Google AI) | ||
- Chat Message Generation (Google AI & Firestore) | ||
- Image Generation (Vertex AI) | ||
|
||
## 📁 Project Structure | ||
|
||
```plain | ||
firebase-genkit-sample/ | ||
├── functions/ | ||
│ ├── src/ | ||
│ │ ├── genkit-functions/ | ||
│ │ └── utils/ | ||
│ └── prompts/ | ||
├── terraform/ | ||
└── README.md | ||
├── .github/ | ||
│ └── workflows/ # CI/CD Pipelines sample | ||
├── prompts/ # AI prompt templates | ||
├── src/ | ||
│ ├── genkit-functions/ # AI function implementations | ||
│ ├── genkit.ts # Genkit configuration | ||
│ └── index.ts # Deploy Functions | ||
└── terraform/ # Terraform configuration for infrastructure setup (not directly related to Genkit, but used for setting up the overall Firebase project infrastructure) | ||
``` | ||
|
||
## 🛠 Quick Start | ||
|
||
0. Install Genkit CLI | ||
|
||
```bash | ||
npm i -g genkit | ||
``` | ||
|
||
## Key Directories and Files | ||
1. Install dependencies | ||
|
||
```bash | ||
npm install | ||
``` | ||
|
||
2. Set environment variables | ||
|
||
```bash | ||
export GCLOUD_PROJECT="your-google-cloud-project-id" | ||
export GOOGLE_GENAI_API_KEY="your-api-key" | ||
export GENKIT_ENV="dev" | ||
``` | ||
|
||
3. Start Genkit emulator for development | ||
|
||
```bash | ||
genkit start -- npx tsx --watch src/index.ts | ||
or | ||
genkit start -- firebase emulators:start --inspect-functions | ||
``` | ||
|
||
4. Deploy to Cloud Run functions (2nd generation) | ||
|
||
```bash | ||
firebase deploy --only functions | ||
``` | ||
|
||
## 📚 Articles | ||
|
||
### English | ||
|
||
- [Orchestrating Firebase and AI: 8 Genkit Architecture Patterns](https://medium.com/@nozomi-koborinai/orchestrating-firebase-and-ai-8-genkit-architecture-patterns-12e44db40345) | ||
- [How to Develop Firebase Genkit Functions](https://medium.com/@nozomi-koborinai/how-to-develop-firebase-genkit-functions-2677b386a227) | ||
- [Getting Started with AI Image Generation Apps on Flutter, Genkit, and Imagen 3](https://medium.com/@nozomi-koborinai/getting-started-with-ai-image-generation-apps-on-flutter-genkit-and-imagen-3-9a83c63cbdf3) | ||
|
||
### Japanese | ||
|
||
- `functions/`: Contains Cloud Run Functions for Firebase code | ||
- `src/genkit-functions/`: Genkit function implementations | ||
- `src/utils/`: Utility functions and helpers | ||
- `prompts/`: AI prompt templates | ||
- `terraform/`: Terraform configuration for infrastructure setup (not directly related to Genkit, but used for setting up the overall Firebase project infrastructure) | ||
- `README.md`: This file, providing an overview of the project | ||
- [Firebase & AI のオーケストレーションを実現!Genkit アーキテクチャ 8 選](https://zenn.dev/nozomi_cobo/articles/genkit-architecture) | ||
- [Firebase Genkit Functions 開発のすゝめ](https://zenn.dev/nozomi_cobo/articles/genkit-emulator-suite) | ||
- [Flutter × Genkit × Imagen 3 で始める AI 画像生成アプリ開発入門](https://zenn.dev/nozomi_cobo/articles/flutter-genkit-imagen) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.