embed-text-with-cohere
v0.0.1-alpha.3
Published
A simple example showing how to embed a chunk using Mastra and Cohere.
Downloads
11
Readme
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
Clone the repository and navigate to the project directory:
git clone https://github.com/mastra-ai/mastra cd examples/basics/rag/embed-text-chunkCopy the environment variables file and add your Cohere API key:
cp .env.example .envThen edit
.envand add your Cohere API key:COHERE_API_KEY=sk-your-api-key-hereInstall dependencies:
pnpm installRun the example:
pnpm start
