Op Chat Brains is an advanced question-answering system designed to provide intelligent responses about Optimism using Retrieval-Augmented Generation (RAG) techniques. The project aims to create a complete AI solution that empowers users to access reliable information about Optimism through various interfaces.
Chatbot Web Application: Users can interact with the trained model and ask questions. Automated Summary Reports: Summarizes forum discussions within the Optimism ecosystem. Reporting Tool: Tracks user engagement and evaluates the model's effectiveness.
data/
: Contains raw and processed datasets.notebooks/
: Jupyter notebooks for experimentation and analysis.pkg/
: Core package containing the main application logic and modules.scripts/
: Scripts for creating and improving datasets and conducting tests.www/
: Frontend-related files, configurations, and dependencies.
- Python 3.12+
- Poetry
- Node.js 20+
- Yarn
-
Clone the repository:
git clone https://github.com/bleu/op-ai-tools.git cd op-ai-tools
-
Set up the Python environment:
cd pkg/op-brains poetry install
-
Set up the web application:
cd www yarn install
Run the data collection scripts:
python scripts/op-2-create-initial-documentation-dataset/main.py
python scripts/op-9-create-optimism-forum-dataset/main.py
Process the collected data:
cd pkg/op-brains && python op_brains/setup.py
Start the Flask API:
cd pkg/op-brains && python op_brains/api.py
Start the Next.js development server:
cd www
yarn dev
Visit http://localhost:3000 in your browser to interact with the chat interface.
For any questions or issues, please open an issue on GitHub or contact the project maintainers.