lc-api
is a project that provides an API service utilizing various language models. It is built using the NestJS framework and integrates with different language model services.
Supported LLM services:
- OpenAI
- Ollama
- AWS Bedrock
The aim of this project is to play around with TypeScript, NestJS, and LangChain.
- Language Model Integration: Supports multiple language models.
- Configurable: Easily configurable through a centralized configuration service.
- Modular Design: Built with a modular design to facilitate easy extension and maintenance.
- TypeScript: The primary language used for development.
- NestJS: A progressive Node.js framework for building efficient and scalable server-side applications.
- LangChain: A library for building language model applications.
- npm: Node package manager for managing dependencies.
- Node.js (v14 or higher)
- npm (v6 or higher)
- Clone the repository:
git clone https://github.com/tivaliy/lc-api.git
- Install dependencies:
cd lc-api npm install
- Copy the
.env.example
file and rename it to.env
. Update the environment variables as needed. - Start the application:
npm run start
- The application should now be running on
http://localhost:8888
.
TypeScript
| NestJS
| LangChain
| LLM
| API
| Language Models