Find answers from the community

Updated 8 months ago

Hello. I'm trying to replicate the

Hello. I'm trying to replicate the simpledirectoryReader example and vectorstoreindex example (the paul graham essay one) with my openai api key. However, I get this error: BadRequestError: Error code: 400 - {'error': {'message': "This model's maximum context length is 8192 tokens, however you requested 16723 tokens (16723 in your prompt; 0 for the completion). Please reduce your prompt; or completion length.", 'type': 'invalid_request_error', 'param': None, 'code': None}}. Do you know if there's a modification or something i need to do in open ai for it to run the vectorstoreindex?
W
1 comment
I'm assuming you did not create your node object I think something got borked somwhere in your code. Try again from the start.
Add a reply
Sign up and join the conversation on Discord