Skip to content
65 changes: 65 additions & 0 deletions js/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions js/samples/docs-menu-basic/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
## Build it

```
pnpm build
```

or if you need to, build everything:

```
cd </path/to/genkit>; pnpm run setup; cd -
```

where `</path/to/genkit>` is the top level of the genkit repo.

## Run the flow via cli

```
genkit flow:run menuSuggestionFlow '"astronauts"'
```

## Run the flow in the Developer UI

```
genkit start
```

Click on `menuSuggestionFlow` in the lefthand navigation panel to run the new flow.
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,13 @@
"dependencies": {
"@genkit-ai/ai": "workspace:*",
"@genkit-ai/core": "workspace:*",
"@genkit-ai/dotprompt": "workspace:*",
"@genkit-ai/firebase": "workspace:*",
"@genkit-ai/flow": "workspace:*",
"@genkit-ai/googleai": "workspace:*",
"express": "^4.19.2",
"zod": "^3.23.6"
"zod": "^3.22.4"
},
"devDependencies": {
"typescript": "^5.4.5"
"typescript": "^5.3.3"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,12 @@
// both.
import { generate } from '@genkit-ai/ai';
import { configureGenkit } from '@genkit-ai/core';
import { dotprompt } from '@genkit-ai/dotprompt';
import { defineFlow, startFlowsServer } from '@genkit-ai/flow';
import { geminiPro, googleAI } from '@genkit-ai/googleai';
import * as z from 'zod';

configureGenkit({
plugins: [googleAI(), dotprompt()],
plugins: [googleAI()],
logLevel: 'debug',
enableTracingAndMetrics: true,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ pnpm build
or if you need to, build everything:

```
cd ../../../; pnpm build; pnpm pack:all; cd -
cd </path/to/genkit>; pnpm run setup; cd -
```

where `</path/to/genkit>` is the top level of the genkit repo.

## Run setup

This will add the `GenkitGrubPub.pdf` to your index
This will add the `GenkitGrubPub.pdf` to your index:

```
genkit flow:run setup
Expand All @@ -38,4 +40,4 @@ genkit flow:run menuQA '"What burgers are on the menu?"'
genkit start
```

Click on the menuQA flow in the lefthand navigation panel to playground the new flow.
Click on the `menuQA` flow in the lefthand navigation panel to run the new flow.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"@genkit-ai/ai": "workspace:*",
"@genkit-ai/core": "workspace:*",
"@genkit-ai/dev-local-vectorstore": "workspace:*",
"@genkit-ai/dotprompt": "workspace:*",
"@genkit-ai/firebase": "workspace:*",
"@genkit-ai/flow": "workspace:*",
"@genkit-ai/vertexai": "workspace:*",
Expand Down