Skip to content

Commit

Permalink
Update tutorials/how-to-implement-rag-generativeapis/index.mdx
Browse files Browse the repository at this point in the history
Co-authored-by: Jessica <[email protected]>
  • Loading branch information
fpagny and jcirinosclwy authored Nov 28, 2024
1 parent 013b446 commit e02244e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tutorials/how-to-implement-rag-generativeapis/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ Then, we will embed them as vectors and store these vectors in your PostgreSQL d
print('Vectors successfully added for document',file.metadata['source'])
```

The chunk size of 500 characters is chosen to fit within the context size limit of the embedding model used in this tutorial, but could be raised up to 4096 characters for `bge-multilingual-gemma2` model (or slightly more as context size is counted in tokens). Keeping chunks small also optimize performance during inference.
The chunk size of 500 characters is chosen to fit within the context size limit of the embedding model used in this tutorial, but could be raised to up to 4096 characters for `bge-multilingual-gemma2` model (or slightly more as context size is counted in tokens). Keeping chunks small also optimizes performance during inference.

9. You can now run you vector embedding script with:

Expand Down

0 comments on commit e02244e

Please sign in to comment.