Welcome to Type AI, an open-source application that allows you to create an AI-powered API capable of returning intelligent responses based on provided parameters. This application leverages Next.js, React, LangChain, Hugging Face, and Firebase to give users powerful AI capabilities.
Type AI takes a parameter (an object) through an API call and returns a response based on AI logic. For example:
- Question: What is the color of a banana?
- Response: Yellow
- Question: What is the color of an apple?
- Response: Red
You can use this API to generate AI-powered responses for different objects dynamically.
- AI-based response generation.
- Easy-to-use API interface.
- Fully open-source for customization and improvement.
First, clone the repository from GitHub:
git clone https://github.com/kiraaziz/type-ai-open.git
cd type-ai-open
Set up your environment variables by editing the .env
file. You'll need to provide your Firebase configuration.
The Firebase configuration can be found and set in:
C:\...\type-ai-open\lib\firebase\connection.js
Install the necessary dependencies:
npm install
Generate Prisma client:
npx prisma generate
Push the database schema to your development database:
npx prisma db push
Run the development server:
npm run dev
Your application should now be running locally on http://localhost:3000
.
- Next.js: Framework for server-side rendered React applications.
- React: Frontend library for building user interfaces.
- LangChain: Powerful framework for building AI-based applications.
- Hugging Face: AI models for natural language processing and generation.
- Firebase: Backend-as-a-Service platform for authentication, database, and more.
Contributions are welcome! Feel free to open issues or submit pull requests in the GitHub repository: Type AI Open Source Repository
This project is open source and available under the MIT License.
Happy coding! If you encounter any issues, feel free to open an issue on GitHub or contribute to improve this app."# type-ai-open"