Find answers from the community

r
rse
Offline, last seen 3 months ago
Joined September 25, 2024
Hello everyone, I am trying to read in and index a set of large pdfs, but I get this error, do you know how I could fix this? InvalidRequestError: This model's maximum context length is 8191 tokens, however you requested 38416 tokens (38416 in your prompt; 0 for the completion). Please reduce your prompt; or completion length.

The above exception was the direct cause of the following exception:

RetryError Traceback (most recent call last)
/tmp/ipykernel_5663/105381258.py in <module>
----> 1 index = GPTVectorStoreIndex(documents)
7 comments
r
T