Quickstarts
Node.js
GitHub Repository
You can find the project source code on GitHub.
Install RAG Chat SDK
Initialize the project and install the required packages:
Setup Upstash Redis
Create a Redis database using Upstash Console or Upstash CLI and copy the UPSTASH_REDIS_REST_URL
and UPSTASH_REDIS_REST_TOKEN
into your .env
file.
.env
Setup Upstash Vector
Create a Vector index using Upstash Console or Upstash CLI and copy the UPSTASH_VECTOR_REST_URL
and UPSTASH_VECTOR_REST_TOKEN
into your .env
file.
.env
Setup QStash LLM
Navigate to QStash Console and copy the QSTASH_TOKEN
into your .env
file.
.env
Create a Node.js Server
Create server.ts
:
server.ts
Run the Server
Visit http://localhost:8080
Was this page helpful?