Skip to content

Commit

Permalink
Update imports in index.md (#1018)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinthecheung authored Oct 7, 2024
1 parent 080108b commit 0098ff7
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ See the following code samples for a concrete idea of how to use these capabilit
- {Basic generation}

```javascript
import { generate } from `@genkit-ai/ai`;
import { generate } from '@genkit-ai/ai';
import { gemini15Flash, claude3Sonnet, llama31 } from '@genkit-ai/vertexai';
import { gpt4o } from 'genkitx-openai';

Expand All @@ -70,9 +70,9 @@ See the following code samples for a concrete idea of how to use these capabilit
- {Structured generation}

```javascript
import { generate } from `@genkit-ai/ai`;
import { gemini15Flash } from `@genkit-ai/googleai`;
import { z } from `zod`;
import { generate } from '@genkit-ai/ai';
import { gemini15Flash } from '@genkit-ai/googleai';
import { z } from 'zod';
const result = await generate({
model: gemini15Flash,
Expand All @@ -95,9 +95,9 @@ See the following code samples for a concrete idea of how to use these capabilit
- {Tool calling}

```javascript
import { generate, defineTool } from `@genkit-ai/ai`;
import { gemini15Flash } from `@genkit-ai/googleai`;
import { z } from `zod`;
import { generate, defineTool } from '@genkit-ai/ai';
import { gemini15Flash } from '@genkit-ai/googleai';
import { z } from 'zod';
// Define tool to get weather data for a given location
const lookupWeather = defineTool({
Expand Down Expand Up @@ -126,9 +126,9 @@ See the following code samples for a concrete idea of how to use these capabilit
- {Retrieval}

```javascript
import { generate, retrieve } from `@genkit-ai/ai`;
import { generate, retrieve } from '@genkit-ai/ai';
import { devLocalRetrieverRef } from '@genkit-ai/dev-local-vectorstore';
import { gemini15Flash } from `@genkit-ai/googleai`;
import { gemini15Flash } from '@genkit-ai/googleai';
// Sample assumes Genkit documentation has been chunked, stored, and indexed in
// local vectorstore in previous step.
Expand Down

0 comments on commit 0098ff7

Please sign in to comment.