ChatGPT Powered Question Answering Over Documents

부분 유료
분류별 Skanda Vivek | 업데이트됨 un mese fa | Artificial Intelligence/Machine Learning
Health Check

N/A

모든 토론으로 돌아가기

Whole document is not being parsed in the context

Rapid account: Pratikbharsakle
pratikbharsakle
un anno fa

I am sending a text from a PDF document. The text is approximately 50000 chars long and PDF is of approx 30 pages. I observed in the response, the content only shows part of text I sent as part of request. And the API is not able to answer the question whose answer is present on page 1 or page 2 of text submitted.

Would appreciate some help on this matter.

Rapid account: Skandavivek
skandavivek Commented un anno fa

Hi - thanks for your question. Good observation that the response contains only part of the text. This is because ChatGPT has limitations on the number of max. tokens it can accept. Under the hood, the API is doing an embeddings comparison to find which chunks of text most likely contain the answer (which is why the reponse only has chunks of text).

Here is an article I wrote if you want more details - feel free to let me know if you have any other questions.

https://pub.towardsai.net/chatgpt-api-101-a-beginners-guide-95e6d41c716f

Best,

Skanda

아래에 의견을 추가하고 토론에 참여하세요.

새 댓글을 게시하려면 로그인 / 가입