0.0.1-alpha.3 • Published 1 year ago

embed-text-with-cohere v0.0.1-alpha.3

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

Embed text with cohere

A simple example showing how to embed a chunk using Mastra and Cohere.

Prerequisites

  • Node.js v20.0+
  • pnpm (recommended) or npm
  • Cohere 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/embed-text-chunk
  2. Copy the environment variables file and add your Cohere API key:

    cp .env.example .env

    Then edit .env and add your Cohere API key:

    COHERE_API_KEY=sk-your-api-key-here
  3. Install dependencies:

    pnpm install
  4. Run the example:

    pnpm start
0.0.1-alpha.3

1 year ago

0.0.1-alpha.0

1 year ago