Skip to content

Commit

Permalink
Fix openai model cookbook
Browse files Browse the repository at this point in the history
  • Loading branch information
Sevenannn committed Jan 21, 2025
1 parent b32dd4a commit d4e7202
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
13 changes: 3 additions & 10 deletions models/openai/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,14 @@ datasets:
embeddings:
- from: openai:text-embedding-3-small
name: embeddings-model
params:
openai_api_key: ${secrets:OPENAI_API_KEY}

models:
- from: openai:gpt-4o
name: chat-model
params:
openai_api_key: ${secrets:OPENAI_API_KEY}
tools: auto
system_prompt: |
You are a helpful Spice.ai Docs assistant.
Expand Down Expand Up @@ -170,16 +173,6 @@ I have access to the following dataset:
This dataset contains documentation related to the Spice.ai project.
```
```shell
chat> how many records in taxi trips dataset
There are a total of 2,964,624 records in the taxi trips dataset.
```
```shell
chat> what is the longest taxi trip distance recorded
The longest taxi trip distance recorded is approximately 312,722.3 meters.
```
```shell
chat> What are release criterias?
The release criteria for Spice.ai components, such as models, data accelerators, and catalog connectors, are divided into stages, including Release Candidate (RC) and Stable release criteria. Here are the details for RC Criteria:
Expand Down
3 changes: 3 additions & 0 deletions models/openai/spicepod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,14 @@ datasets:
embeddings:
- from: openai:text-embedding-3-small
name: embeddings-model
params:
openai_api_key: ${secrets:OPENAI_API_KEY}

models:
- from: openai:gpt-4o
name: chat-model
params:
openai_api_key: ${secrets:OPENAI_API_KEY}
tools: auto
system_prompt: |
You are a helpful Spice.ai Docs assistant.

0 comments on commit d4e7202

Please sign in to comment.