Enterprise-grade RAG with PDFs and NPM for Javascript Developers
How to build apps in Farspeak fast?
We're launching an enterprise-grade support for PDFs and a new version of the npm today.
How does it work? Let’s build an app.
Step 1: Create an app and get a Farspeak token.
Go to farspeak.ai, create an app and get the Farspeak token. In under one minute.
You can also find a short “How To Start” there.
Ok, let’s do it! It’s fun! Go ahead and click “Get Your API Key” and then log in.
You will land in the Farspeak dashboard. Create a new app app. Let’s give a name — farspeaktutorial.
Then open that app in the dashboard and copy&paste the token (you can create different environments / we’re using the default environment - dev).
You can check if it works in the terminal (using curl).
The code would look like this (the first query updates the Farspeak backend, the other one queries the Farspeak knowledge base).
Ok, that wasn’t hard. Now it’s time to follow the How To Start.
Install the npm. It’s here: npm
Then follow the instructions on our GitHub
Here’s a short code snippet that I used in this tutorial:
At first, we uploaded a file, and got this:
Then, we were able to ask questions (at the production scale):
You can do the same with any number of documents. (If there are too many of them, you’d need a paid or enterprise license).
Let us know what you think.