This project implements a Retrieval Augmented Generation (RAG) system using the kaibanjs library and natural language processing tools. The goal is to create teams of agents that collaborate on research and content generation tasks, leveraging up-to-date information from the web.
-
Clone the repository:
git clone https://github.com/kaiban-ai/kaibanjs-web-rag-tool-demo.git cd kaibanjs-web-rag-tool-demo
-
Install dependencies:
Ensure you have
node
andnpm
installed on your system.npm install
Before running the project, you need to configure the necessary environment variables:
-
Environment Variables:
Create a
.env
file in the root directory of the project and add your OpenAI API key:VITE_OPENAI_API_KEY=your_openai_api_key
tool.js
: Implementation ofWebRAGTool
, a tool for dynamically retrieving and processing web content.team.js
: Definition of the Financial Analysis Team.
- Node.js and npm
- kaibanjs: Main library for creating agents and teams.
- langchain: Used for natural language processing and chain creation.
- OpenAI API: For utilizing advanced language models.
Contributions are welcome! Please fork the repository and submit a pull request with your improvements.
This project is licensed under the MIT License.