Skip to content

YallaPapi/ofmentor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OFMentor: AI Assistant for OnlyFans Management

OFMentor is an AI-powered assistant specifically designed to answer questions related to OnlyFans management, including model recruitment, content strategy, traffic generation, chatting and sales automation, backend operations, and growth hacking tactics.

Features

  • Specialized Knowledge: Trained on transcripts from YouTube videos about OnlyFans management
  • RAG Architecture: Retrieval-Augmented Generation for accurate and contextual responses
  • Multiple Interfaces: Web UI, REST API, and CLI access options
  • Continuous Learning: Daily updates to keep knowledge current
  • Source Citations: Transparency by showing where information comes from

Getting Started

Quick Setup

  1. Run the setup script to install all dependencies:

    setup.bat
    
  2. Start the application:

    run.bat
    
  3. Access the modern UI at http://localhost:3000

Manual Setup

Backend Setup

# Install Python dependencies
pip install -e .

# Run the backend server
python start_ofmentor.py

Frontend Setup

# Navigate to the frontend directory
cd ofmentor-ui

# Install dependencies
npm install

# Start the development server
npm run dev

# Or build and run production
npm run build
npm start

Architecture

OFMentor combines multiple technologies to provide expert guidance:

  1. Data Acquisition: YouTube API and Apify integration for transcript extraction
  2. Knowledge Base: Pinecone vector database for efficient semantic search
  3. RAG Engine: Advanced retrieval with multi-query and re-ranking
  4. Modern UI: Next.js frontend with shadcn/ui components

Configuration

API keys and settings are stored in the .env file:

  • OpenAI API Key: For embeddings and response generation
  • YouTube API Key: For content discovery
  • Pinecone API Key: For vector database storage
  • Apify API Key: For enhanced transcript extraction

API Usage

The OFMentor API is accessible at http://localhost:8000/api/query:

POST /api/query
{
  "query": "How do I recruit OnlyFans models?",
  "top_k": 5,
  "rerank": true,
  "multi_query": true
}

Troubleshooting

  • Backend not starting: Check that Python 3.9+ and dependencies are installed
  • Frontend build failing: Ensure Node.js 18+ is installed
  • API connections failing: Verify that the backend is running on port 8000

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors