Skip to content

Commit

Permalink
Remove redundant VAR=$VAR statements, add flags to use the rag pipeli…
Browse files Browse the repository at this point in the history
…ne with OpenAI
  • Loading branch information
dagardner-nv committed Apr 22, 2024
1 parent 142c909 commit 2d11e18
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions examples/llm/rag/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,14 +214,14 @@ pipeline option of `rag`:
```bash
export NGC_API_KEY=[YOUR_KEY_HERE]
NGC_API_KEY=${NGC_API_KEY} python examples/llm/main.py rag pipeline
python examples/llm/main.py rag pipeline
```

**Using OpenAI LLM models**

```bash
export OPENAI_API_KEY=[YOUR_KEY_HERE]
OPENAI_API_KEY=${OPENAI_API_KEY} python examples/llm/main.py rag pipeline
python examples/llm/main.py rag pipeline --llm_service=OpenAI --model_name=gpt-3.5-turbo
```

### Run example (Persistent Pipeline):
Expand All @@ -232,14 +232,14 @@ OPENAI_API_KEY=${OPENAI_API_KEY} python examples/llm/main.py rag pipeline

```bash
export NGC_API_KEY=[YOUR_KEY_HERE]
python examples/llm/main.py rag persistent
python examples/llm/main.py rag persistent
```

**Using OpenAI LLM models**

```bash
export OPENAI_API_KEY=[YOUR_KEY_HERE]
python examples/llm/main.py rag persistent
python examples/llm/main.py rag persistent
```

### Options:
Expand Down Expand Up @@ -273,4 +273,3 @@ The `rag` command has its own set of options and commands:

- `persistant`
- `pipeline`

0 comments on commit 2d11e18

Please sign in to comment.