Looking for feedback on our API for easy document chat integration

Hey everyone,

My friend and I have been working hard on an API that allows developers and founders to easily add document chat-like features into their app.

You upload a PDF (or multiple) with 1 simple API call, and then chat with that PDF with another API call. This allows you to integrate it into your own apps, create a Slack/Discord/Whatsapp bot, etc.

We’ve just got the first version working and would love for people to try it.


> curl -X POST -H "Authorization: Bearer API_KEY" -F "file=@./company-bylaws.pdf" https://localhost:8000/v1/documents/upload {"status":"success","collection_id":"ad8b106a-7739-4798-8a58-3d66cdfd6183","filename":"company-bylaws.pdf"} 


> curl -X POST -H "Authorization: Bearer API_KEY" -H "Content-Type: application/json" -d '{"query": "Where do the shareholders meet?", "include_sources": false}' http://localhost:8000/v1/collections/ad8b106a-7739-4798-8a58-3d66cdfd6183/query {"result":"The meeting of shareholders can be held at any place designated by the Board of Directors, or at the registered office of the corporation if no other place is designated. It can be held within or outside the state of Delaware."} 

It’s free for now for early users. We’re aiming to get feedback so that we can continue to improve the API and make it even more useful.

If you’re interested in trying out the API or have questions/comments, lmk!

submitted by /u/abhishekap3
[link] [comments]