ask-multiple-pdfs icon indicating copy to clipboard operation
ask-multiple-pdfs copied to clipboard

Keeps getting inputs too long error

Open wenzhao98 opened this issue 1 year ago • 1 comments

changed embedding to hkunlp/instructor-large and using HuggingFace instead of OpenA. Keeps getting the following error:

ValueError: Error raised by inference API: Input validation error: inputs must have less than 1024 tokens. Given: 1062

I think it is due to the memory.

wenzhao98 avatar Aug 15 '23 23:08 wenzhao98

Check my pull request (#45) where the "chunk_size" and "max_new_tokens", have been updated, among other improvements.

costabm avatar Nov 02 '23 15:11 costabm