GPT Protocol
  • 1. Welcome to GPT Protocol
    • 🎉1.1 Introduction to GPT Protocol
    • 💡1.2 The GPT Protocol Ecosystem
    • 💎1.3 Exploring $GPT Tokens and Blockchain
  • 2. Products
    • 🤖2.1 GPT Assistant: Your AI Companion
      • 📖2.1.1 Overview
      • ⚙️2.1.2 Getting Started
      • 🛠️2.1.3 Features and Capabilities
      • 📱2.1.4 Installation and Setup
      • 💻2.1.5 Usage and Examples
      • ❓2.1.6 Troubleshooting and FAQs
    • 🌐2.2 Genesis3D: Bringing Text to Life in 3D (Under Construction)
      • 🎨2.2.1 What is Genesis3D?
      • 🔬2.2.2 The Technology Behind Genesis3D
      • 📺2.2.3 Preview of Genesis3D Capabilities
      • 🚀2.2.4 How to Participate in the Genesis3D Launch
  • 3. Community and Governance
    • ✊3.1 Joining the GPT Protocol Community
    • ✍️3.2 Governance and Contribution
    • 🏁3.3 Upcoming Features and Roadmap
  • 5. Support and Resources
    • 🆘5.1 Help Center
    • 📘5.2 Educational Resources
  • 6. Legal and Compliance
    • 📃6.1 Terms of Service
    • 🔓6.2 Privacy Policy
Powered by GitBook
On this page
Export as PDF
  1. 2. Products
  2. 2.1 GPT Assistant: Your AI Companion

2.1.2 Getting Started

GPT Assistant is an open-source platform utilizing AI and Blockchain technologies. To get started, follow the steps below.

Last updated 1 year ago

GPT Assistant 2.0

Initial Steps:

  1. Clone the Repository: Start by cloning the GPT Assistant repository from GitHub (). This can be done by using Git commands or directly downloading the repository as a ZIP file.

  2. Environment Setup: After cloning, create a .env.local file in the root directory. This file will hold important configurations such as the MongoDB URL and the Hugging Face API token. Follow the current .env example file pattern.

Database Configuration:

  1. Setting Up MongoDB: MongoDB is crucial for storing the chat history. You can set up a local MongoDB instance or use a MongoDB Atlas instance. For a local setup, using Docker to run a MongoDB container is an easy option.

  2. Configuring Database URL: In the .env.local file, specify the MongoDB URL (MONGODB_URL). For a local MongoDB instance, the URL would typically be mongodb://localhost:27017.

Installing Dependencies and Running the Application:

  1. Install Dependencies: Run npm install in the terminal to install all the necessary dependencies.

  2. Starting the Application: After setting up the environment and database, start the application using npm run dev. This will launch the GPT Assistant interface.

Additional Configurations:

  1. API Keys for Web Search: If you want to enable web search capabilities, add the appropriate API keys (like YDC_API_KEY, SERPER_API_KEY) to your .env.local.

  2. Custom Model Endpoints: You can also configure custom model endpoints in the .env.local file. This allows for greater flexibility in terms of the models you can use with the Assistant.

This overview provides a simplified guide to getting started with the GPT Assistant. For complete details and step-by-step instructions, refer to the repository's README and documentation.

🤖
⚙️
https://github.com/gptprotocol/gpt-assistant