An open API service indexing awesome lists of open source software.

https://github.com/firatgoktepe/finance-ai-rag

AI-RAG App for finance
https://github.com/firatgoktepe/finance-ai-rag

ai astradb css3 langchain-js nextjs14 openai rag reactjs typescript

Last synced: 9 months ago
JSON representation

AI-RAG App for finance

Awesome Lists containing this project

README

          

# RAG Chatbot Using JavaScript (LangChain, Next.js, Vercel, OpenAI)

This project is a **Retrieval-Augmented Generation (RAG) Chatbot** that provides accurate and contextual answers by leveraging OpenAI's language model, LangChain, and a custom database. It is built using **Next.js**, **JavaScript**, and deployed on **Vercel**.

---

## 🌟 Features

- **Retrieval-Augmented Generation (RAG):** Combines knowledge retrieval with a language model for precise responses.
- **Dynamic Chat:** Handles user queries and fetches relevant data in real-time.
- **Custom Embeddings:** Uses a database for domain-specific knowledge retrieval.
- **Scalable Deployment:** Deployed on Vercel for high availability and performance.

---

## 🛠️ Tech Stack

- **Frontend:** Next.js (React Framework)
- **Backend:** LangChain and OpenAI API
- **Deployment:** Vercel
- **Database:** Datastax astra
- **Styling:** CSS and custom components

---

## 🚀 Installation Guide

### Prerequisites

- Node.js (v16 or higher)
- Git
- OpenAI API Key
- Database Credentials for Custom Embeddings

### Steps to Run Locally

1. **Clone the Repository**
```bash
git clone https://github.com/firatgoktepe/finance-ai-rag.git
cd RAG-Chatbot-Using-Javascript-langchain-next.js-vercel-openai
```

### Install Dependencies

npm install @datastax/astra-db-ts @langchain/community axios dotenv puppeteer langchain

### Key Functionalities

Chat Interface:
Users can ask questions in the input box, and the chatbot generates responses.
Prompt Suggestions:
Predefined prompts for quicker user interactions.
Real-Time Loading Indicator:
Displays when fetching data or generating responses.

### 📜 License

This project is licensed under the MIT License. See the LICENSE file for details.