RAG-enabled ReAct Agent designed to help answer questions related to Adaptive ML. Can expose the agent via a socket.io server for web-based communication or run as a CLI agent.
- Node.js 18 or higher
- npm or yarn
- An Anthropic API key (model communication)
- An OpenAI API key (for generating embeddings and populating the vector store)
-
Install dependencies:
npm install
-
Copy the example environment file and add your API key:
cp .env.example .env
-
Edit
.envand add your API keys:ANTHROPIC_API_KEY=your_actual_api_key_here OPENAI_API_KEY=your_actual_api_key_here
Populate the vector store
npm run populateVectorStore
# Alternatively, populate (or repopulate) an individual vector data source
tsx src/scripts/populate-vector-store.ts <source-id> (heml-repo|docker-repo|documentation-website)Start the agent
npm run dev
# Alternatively, run a CLI-based chat
npm run clinpm run build
npm start # or npm run startCLInpm run watch