Skip to content

Commit

Permalink
fix: syntax error in examples.prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
lpm0073 committed Dec 1, 2023
1 parent e892381 commit 230b709
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,17 @@ python3 -m models.examples.load "./data/"
python3 -m models.examples.rag "What is Accounting Based Valuation?"
```

## Requirements
## Setup

- OpenAI API key
- Pinecone API key
Set the following credentials in .env located in the root of this repository.

```console
export OPENAI_API_ORGANIZATION=SET-ME-PLEASE
export OPENAI_API_KEY=SET-ME-PLEASE
export PINECONE_API_KEY=SET-ME-PLEASE
export PINECONE_ENVIRONMENT=SET-ME-PLEASE
OPENAI_API_ORGANIZATION=SET-ME-PLEASE
OPENAI_API_KEY=SET-ME-PLEASE
PINECONE_API_KEY=SET-ME-PLEASE
PINECONE_ENVIRONMENT=SET-ME-PLEASE
PINECONE_INDEX_NAME=SET-ME-PLEASE
DEBUG_MODE=False
```

### Pinecone setup
Expand Down
2 changes: 1 addition & 1 deletion models/examples/prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
args = parser.parse_args()

result = ssm.cached_chat_request(args.system_prompt, args.human_prompt)
print(result.content, end="\n")
print(result)

0 comments on commit 230b709

Please sign in to comment.