Skip to content

antoinebcx/ai-app-template-typescript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

AI app template

This project is a template of an AI app, built with TypeScript and using Vite, React, Node and Express. It demonstrates how to use AI services to extract information in a structured way from text, audio, and images.

The project shows how to effectively structure a prompt with XML tags and how to use structured outputs with a reasoning field, function calling (tool use) and few-shot examples (in-context learning).

The app supports text inputs, audio transcription and text extraction from images.

image

To use the app

To use the app, you need to create a .env file in the /backend directory with:

OPENAI_API_KEY = [your OpenAI API key]

Then, you can open two terminal windows, go to the project path and run:

cd frontend
npm install
npm run dev
cd backend
npm install
npm run dev

The code

The template is structured as a classic TypeScript fullstack app, in a monorepo with /backend and /frontend folders.

It contains notably:

All the rest is like any other app (API, controllers, ...).

About

AI app template in TypeScript.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors