Skip to content

Commit

Permalink
added an example for an older version of gpt to the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ankri committed Mar 20, 2023
1 parent fd1020b commit 695623b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ PINECONE_ENVIRONMENT=

4. In the `config` folder, replace the `PINECONE_INDEX_NAME` and `PINECONE_NAME_SPACE` with your own details from your pinecone dashboard.

5. In `utils/makechain.ts` chain change the `QA_PROMPT` for your own usecase. Change `modelName` in `new OpenAIChat` to a different api model if you don't have access to `gpt-4`.
5. In `utils/makechain.ts` chain change the `QA_PROMPT` for your own usecase. Change `modelName` in `new OpenAIChat` to a different api model if you don't have access to `gpt-4`. See [the OpenAI docs](https://platform.openai.com/docs/models/model-endpoint-compatibility) for a list of supported `modelName`s. For example you could use `gpt-3.5-turbo` if you do not have access to `gpt-4`, yet.

## Convert your PDF to embeddings

Expand Down
2 changes: 1 addition & 1 deletion utils/makechain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const makeChain = (
const docChain = loadQAChain(
new OpenAIChat({
temperature: 0,
modelName: 'gpt-4', //change this to older versions if you don't have access to gpt-4
modelName: 'gpt-4', //change this to older versions (e.g. gpt-3.5-turbo) if you don't have access to gpt-4
streaming: Boolean(onTokenStream),
callbackManager: onTokenStream
? CallbackManager.fromHandlers({
Expand Down

0 comments on commit 695623b

Please sign in to comment.