The AI Factory Server is a component of the AI Factory system responsible for handling backend operations and facilitating the core functionalities of the system. Its primary responsibilities include:
- API Endpoints: The server exposes API endpoints that enable communication with other components of the system, such as the client and potentially other servers or services. These endpoints allow for the retrieval of predictions, submission of training data, and interaction with machine learning models.
- Integration with External Services: It may integrate with external services or APIs to enhance its capabilities. This could involve using pre-trained models from external sources, accessing additional datasets, or leveraging specialized machine learning tools.
git clone https://github.com/apoorvnema/AI-Factory.git
cd AI-Factory
npm install
- Create a .env file:
- Add the necessary environment variables to the .env file.
- .env example variables: (write without double quotes)
- OPENAI_API_KEY="Your OpenAI API Key"
- PORT="Whichever port you want to use"
- DEV_MODE="development or production"
- MONGO_URI="mongodb+srv://<YOUR_USER>:<YOUR_PASS>@<Cluster_name>/<Collection_name>"
- JWT_ACCESS_SECRET = "Any Random String"
- JWT_ACCESS_EXPIREIN = 15min
- JWT_REFRESH_TOKEN = "Any Random String"
- JWT_REFRESH_EXPIREIN = 15day
- GEMINI_PRO_API="Your Gemini API Key"
- Make changes accordingly in .env file
npm start
The AI Factory Server uses the OpenAI API. Refer to the OpenAI API documentation for more details on how to integrate and use the OpenAI API in your Node.js application.
This project is licensed under the MIT License - see the LICENSE file for details.