zlacker

[parent] [thread] 0 comments
1. clwg+(OP)[view] [source] 2024-02-13 19:09:19
I use an API that I threw together which provides a backend for custom ChatGPT bots. There are only a few routes and parameters to keep it simple, anything complicated like arrays in json can cause issues. ChatGPT can perform searches, retrieve documents by an ID, or POST output for long-term storage, and I've integrated SearxNG and a headless browser API endpoint as well and try to keep it a closed loop so that all information passing to chatGPT from the web flows through my API first. I made it turn on my lights once too, but that was kind of dumb.

When you start to pull in multiple large documents, especially all at once, things start to act weird, but pulling in documents one at a time seems to preserve context over multiple documents. There's a character limit of 100k per API request, so I'm assuming a 32k context window, but it's not totally clear what is going on in the background.

It's kind of clunky but works well enough for me. It's not something that I would be putting sensitive info into - but it's also much cheaper than using GPT-4 via the API and I maintain control of the data flow and storage.

[go to top]