Skip to content

Commit 4fc283c

Browse files
committed
Added some info on mastra
1 parent e367683 commit 4fc283c

1 file changed

Lines changed: 17 additions & 4 deletions

File tree

tutorial/markdown/nodejs/quickstart-mastra/mastra-couchbase-nextJS-tutorial.md

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,19 @@ length: 60 Mins
2525

2626
This tutorial will guide you through building a complete Retrieval-Augmented Generation (RAG) application from scratch using [Next.js](https://nextjs.org/), the [Mastra AI framework](https://mastra.ai/), and [Couchbase](https://www.couchbase.com/) for [vector search](https://www.couchbase.com/products/vector-search/). We'll start by getting the pre-built application running and then break down how each part works so you can build it yourself.
2727

28+
29+
## About Mastra
30+
31+
Mastra is an open-source TypeScript agent framework designed to provide the necessary primitives for building AI applications and features. It allows you to create AI agents with memory, execute functions, and chain LLM calls in deterministic workflows. Here are some key features of Mastra:
32+
33+
- **Model Routing:** Utilizes the Vercel AI SDK for model routing, offering a unified interface to interact with various LLM providers like OpenAI, Anthropic, and Google Gemini.
34+
- **Agent Memory and Tool Calling:** Agents can be equipped with tools (functions) they can call, and their memory can be persisted and retrieved based on recency, semantic similarity, or conversation thread.
35+
- **Workflow Graphs:** Provides a graph-based workflow engine for executing LLM calls deterministically, with simple syntax for control flow.
36+
- **Retrieval-Augmented Generation (RAG):** Offers APIs to process documents into chunks, create embeddings, and store them in a vector database, retrieving relevant chunks at query time to ground LLM responses in your data.
37+
- **Deployment:** Supports bundling agents and workflows within existing applications or as standalone endpoints, with easy deployment to platforms like Vercel, Cloudflare Workers, or Netlify.
38+
39+
This framework is integral to the tutorial, as it powers the AI orchestration and workflow management, enabling the creation of a robust RAG application with Couchbase and Next.js.
40+
2841
## Part 1: Quick Start
2942

3043
First, let's get the completed application running to see what we're building.
@@ -328,15 +341,15 @@ This separation of concerns allows the backend to focus on the heavy lifting of
328341
329342
---
330343
331-
## Part 6: Customization and Extensions
344+
## Appendix: Customization and Extensions
332345
333-
### 7.1 Supporting Different Document Types
346+
### Supporting Different Document Types
334347
You can extend the `readDocument` function in `ingestPdf/route.ts` to support other file types like `.docx` or `.txt` by using different parsing libraries.
335348
336-
### 7.2 Advanced Mastra Features
349+
### Advanced Mastra Features
337350
Explore more of Mastra's capabilities by creating multi-agent workflows, adding more custom tools (e.g., a tool to perform web searches), or implementing more sophisticated memory strategies.
338351
339-
### 7.3 Enhanced Vector Search
352+
### Enhanced Vector Search
340353
Improve retrieval by experimenting with hybrid search (combining vector search with traditional keyword search), filtering by metadata, or implementing more advanced chunking and embedding strategies.
341354
342355
---

0 commit comments

Comments
 (0)