DarkViolet-ai / remix-simple-chat

A simple AI chat app built with remix
2 stars 0 forks source link

A simple chat demo app

This is a simple chat demo app built with remix, langchain, and redis. This utilizes the remix template from https://github.com/EvanMarie/blank_remix_tailwind_template

Features

User navigates to chat and begins chatting with a bot of your choosing. This project shows how to use DeepInfra, TogetherAI, or OpenAI as the chat llm provider.

There is a simple exmple at the route /chat that shows how to use the chatbot.

There is a slightly more complex example at the route /chat/with-terms-and-retrieval that shows how to use a chatbot that implements a user terms of service and a retrieval based chatbot.

You will need to define the following environment variables in a .env file in the root of the project:

REDIS_URL # a redis url, e.g. redis://localhost:6379
DEEP_INFRA_API_KEY # from https://deepinfra.com
TOGETHER_AI_API_KEY # from https://www.together.ai
COOKIE_SECRET # a random string
PINECONE_API_KEY # from https://www.pinecone.io

Prerequisites

Installation

  1. Clone the repository:
git clone <your-repo-url>
  1. Install dependencies:
cd <project-directory>
npm install
# or
yarn install
  1. Start the development server:
npm run dev
# or
yarn dev

Your project should now be running on http://localhost:3000.

From darkviolet.ai

If you have any questions, or if you want help in your implementation -- including security, user management, document preparation, and multi-modal implementations -- feel free to contact us at Dark Violet.

If you find this useful, make sure to STAR our repository on GitHub. Thank You!