apocas / restai

RESTai is an AIaaS (AI as a Service) open-source platform. Built on top of LlamaIndex & Langchain. Supports any public LLM supported by LlamaIndex and any local LLM suported by Ollama/vLLM/etc. Precise embeddings usage and tuning. Image generation (Dall-E, SD, Flux).
https://apocas.github.io/restai/
Apache License 2.0
383 stars 73 forks source link
embeddings fastapi langchain llama llamaindex llava llm ollama openai openaiapi python rag stable-diffusion transformers

RestAI Logo
RestAI

AIaaS (AI as a Service) for everyone. Create AI projects and consume them using a simple REST API.

Demo: https://ai.ince.pt Username: demo Password: demo

RestAI Video

Features

Project Types

RAG

RestAI RAG

RAGSQL

Agent

Inference

Vision

Stable Diffusion & InstantID

LLaVA

Router

LLMs

Installation

Development

Production

Docker

You can specify profiles docker compose --profile redis --profile mysql .... to include additional components like the redis cache backend or a DB server, here are the supported profiles:

The variables MYSQL_HOST and POSTGRES_HOST should match the names of the respective services "mysql" and "postgres" and not localhost or 127.0.0.1 when using the containers

To delete everything or a specific container don't forget to pass the necessary profiles to the compose command, EX:

Note: the local_cache volume will also get removed since it's in the main service and not in any profile

API

Frontend

Tests

License

Pedro Dias - @pedromdias

Licensed under the Apache license, version 2.0 (the "license"); You may not use this file except in compliance with the license. You may obtain a copy of the license at:

http://www.apache.org/licenses/LICENSE-2.0.html

Unless required by applicable law or agreed to in writing, software distributed under the license is distributed on an "as is" basis, without warranties or conditions of any kind, either express or implied. See the license for the specific language governing permissions and limitations under the license.