0.0.1-alpha.0 • Published 9 months ago
retrieve-results v0.0.1-alpha.0
Retrieve results
A simple example showing how to retrieve results from pinecone using Mastra and OpenAI.
Prerequisites
- Node.js v20.0+
- pnpm (recommended) or npm
- OpenAI API key
- Pinecone API key
Getting Started
Clone the repository and navigate to the project directory:
git clone https://github.com/mastra-ai/mastra cd examples/basics/rag/retrieve-resultsCopy 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 PINECONE_API_KEY=your-pinecone-api-key-hereInstall dependencies:
pnpm installRun the example:
pnpm start
0.0.1-alpha.0
9 months ago