Relative Content

Tag Archive for pythonlocal-storagechatbotopenai-apichatgpt-api

Custom GPT chatbox won’t find the documents in its local knowledge base

I’m quite new to making custom APIs but I need to create a gpt-based chatbox with a custom knowledge basis in order to help me write my thesis. By doing research, I’ve stumbled upon this oldish guide on how to create a custom chatbox here.
After updating its code I managed to have it working and it could access the folder where I keep my files. The issue is that out of the 7 sample documents inside the folder (7 pdfs), the chatbox can only identify one of them… twice! I’m pretty sure it’s my code’s fault but I don’t know what to change anymore. Any help solving this issue is more than welcome.
Here follows the code I used: