0.0.1-alpha.3 • Published 11 months ago
examples-cleanup-rag v0.0.1-alpha.3
Retrieve results
A simple example showing how to optimize information density with RAG using Mastra, OpenAI, and PGVector.
Prerequisites
- Node.js v20.0+
- pnpm (recommended) or npm
- OpenAI API key
- Postgres connection string
Getting Started
Clone the repository and navigate to the project directory:
git clone https://github.com/mastra-ai/mastra cd examples/basics/rag/cleanup-ragCopy the environment variables file and add your OpenAI API key:
cp .env.example .envThen edit
.envand add your OpenAI API key:OPENAI_API_KEY=sk-your-api-key-here POSTGRES_CONNECTION_STRING=your-postgres-connection-string-hereInstall dependencies:
pnpm installRun the example:
pnpm start
0.0.1-alpha.3
11 months ago