This repository (which uses Turborepo) contains the following packages:
- file-to-text: Convert files to plain text.
- text-to-aitext: Convert text to AI-generated text.
- text-to-chunks: Split text into multiple chunks.
- text-to-embeddings: Convert text to vector embeddings.
Additionally, it contains the following applications:
- ai-chat: A Next.js 13 application that allows users to chat with AI using the OpenAI API.
- file-converter: A Next.js 13 application that converts files to text that can also be shown in markdown styling.
- Clone this repository:
git clone https://github.com/JasperAlexander/ai-utils.git
- Inside the repository, run the following command to install the dependencies:
pnpm install
-
Add an OpenAI API key to apps/ai-chat/.env.example.
-
Rename .env.example to .env.local. You can do this by running the following command in the root directory of this app.
mv apps/ai-chat/.env.example apps/ai-chat/.env.local
- Build all apps and packages by running the following command:
pnpm run build
- To start all apps and packages locally, run the following command:
pnpm run dev
If you're interested in contributing, please read the contributing docs before submitting a pull request.
This repository is licensed under the MIT License. See LICENSE for more information.