Unstructured
Unstructured extracts complex data from difficult-to-use formats like HTML, PDF, CSV, and more. Check out Unstructured - Product for more information about their product and pricing.
Install RAG Chat SDK
Install Bun if you haven’t.
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.
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.
Setup QStash LLM
Navigate to QStash Console and copy the QSTASH_TOKEN
into your .env
file.
Setup Unstructured
Create an Unstructured account and get an API key from Unstructed -> API Keys. Set your Unstructed API key as an environment variable:
Setup the Project
Initialize RAGChat:
Fetch a webpage and save it to a file:
Add context to the RAG Chat with the Unstructured processor:
Chat with the RAG Chat:
Run
Run the project:
Was this page helpful?