-
+ {/* Message history */}
+
{messages.map(m => (
{m.role === 'user' ? 'You:' : 'AI:'} {m.content}
))}
-
- {articles.length > 0 && (
-
- )}
-
- );
+ )
}
```
-### Step 7: Deployment
+The UI leverages the Vercel AI SDK's `useChat` hook to manage the chat state and streaming updates. As responses arrive, it simultaneously updates the chat history and the related articles list, providing users with both direct answers and paths to deeper exploration.
-1. Create a new Vercel project:
-```bash
-vercel
-```
+In an e-commerce application, this UI might be used to answer questions about products, or to provide recommendations based on a user's purchase history, or the context in their queries.
-2. Configure environment variables in Vercel:
-- `OPENAI_API_KEY`
-- `PINECONE_API_KEY`
-- `PINECONE_INDEX`
+## Phase 3: Deployment
-3. Deploy:
-```bash
-vercel deploy --prod
-```
+Coming soon! This section is still under construction. Check back shortly.
-### Next Steps
+## Additional Resources
-- Add authentication to protect your API routes
-- Implement caching for frequently asked questions
-- Add error boundaries and loading states
-- Monitor and optimize your API usage
+- [Complete example code on GitHub](https://github.com/zackproser/rag-pipeline-tutorial)
+- [Live demo](https://rag-pipeline-tutorial.vercel.app)
+- [Issues and feature requests](https://github.com/zackproser/rag-pipeline-tutorial/issues)
-That's it! You now have a production-ready RAG pipeline. For support or questions, feel free to reach out in the comments below.
\ No newline at end of file
+That's it! You now have a production-ready RAG pipeline. For support or questions, feel free to reach out in the comments below or [open an issue](https://github.com/zackproser/rag-pipeline-tutorial/issues) in the companion repository.
\ No newline at end of file
diff --git a/src/images/chunking.webp b/src/images/chunking.webp
new file mode 100644
index 00000000..52ec6cb7
Binary files /dev/null and b/src/images/chunking.webp differ
diff --git a/src/images/rag-pipeline-tutorial-clone-example-site.webp b/src/images/rag-pipeline-tutorial-clone-example-site.webp
new file mode 100644
index 00000000..dd53e94e
Binary files /dev/null and b/src/images/rag-pipeline-tutorial-clone-example-site.webp differ
diff --git a/src/images/rag-pipeline-tutorial-docs-sanity.webp b/src/images/rag-pipeline-tutorial-docs-sanity.webp
new file mode 100644
index 00000000..b1fdc95a
Binary files /dev/null and b/src/images/rag-pipeline-tutorial-docs-sanity.webp differ
diff --git a/src/images/rag-pipeline-tutorial-query-index.webp b/src/images/rag-pipeline-tutorial-query-index.webp
new file mode 100644
index 00000000..a4085f2a
Binary files /dev/null and b/src/images/rag-pipeline-tutorial-query-index.webp differ
diff --git a/src/images/rag-tutorial-colab-secrets.webp b/src/images/rag-tutorial-colab-secrets.webp
index 7b29510c..b671ff6d 100644
Binary files a/src/images/rag-tutorial-colab-secrets.webp and b/src/images/rag-tutorial-colab-secrets.webp differ