Nothing Special   »   [go: up one dir, main page]

Skip to content

This is an Express service that provides authorization functionality and includes gen-AI features using RAG and Redis.

Notifications You must be signed in to change notification settings

WillACosta/genai-langchain-api

Repository files navigation

Gen-AI API with Langchain and NodeJS

This is an Express service written in TypeScript that provides authorization functionality and includes gen-AI features, using RAG concepts, vector database and implements AI memory history with Redis DB.

🌱 This project is under development.

Resources

Project Structure

common: common code and utilities for all modules
di: dependency injection container
modules: application features
  module_name:
    adapters: class adapters for external resources
      dataproviders:
      services:

    application: application layer for controllers and routes
      controllers:
      routes:

    core: application core logic
      entities:
      usecases:
      utils: class and constant utilities for this module

Prerequisites

Before running the application, make sure you have the following installed:

  • NodeJS (v20.12.1)
  • PNPM (v9.7.0)
  • Docker (v27.2.0)

Running the application

  1. Clone this repository
git clone https://github.com/WillACosta/genai-langchain-api

Copy the .env.example file to .env and fill it with your own credentials

cp .env.example .env
  1. You'll need Docker to setup and running the application services

From the app's root directory, run the following command to build and running docker containers:

docker compose up --build

The application will be available at http://localhost:3000.