retrieve-results

0.0.1-alpha.0 • Public • Published

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

  1. Clone the repository and navigate to the project directory:

    git clone https://github.com/mastra-ai/mastra
    cd examples/basics/rag/retrieve-results
  2. Copy the environment variables file and add your OpenAI API key:

    cp .env.example .env

    Then edit .env and add your OpenAI API key:

    OPENAI_API_KEY=sk-your-api-key-here
    PINECONE_API_KEY=your-pinecone-api-key-here
  3. Install dependencies:

    pnpm install
    
  4. Run the example:

    pnpm start

Readme

Keywords

none

Package Sidebar

Install

npm i retrieve-results

Weekly Downloads

1

Version

0.0.1-alpha.0

License

none

Unpacked Size

5.7 kB

Total Files

6

Last publish

Collaborators

  • smthomas