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
- Host: GitHub
- URL: https://github.com/firatgoktepe/finance-ai-rag
- Owner: firatgoktepe
- Created: 2025-01-09T12:10:19.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-02-11T17:50:49.000Z (10 months ago)
- Last Synced: 2025-02-11T18:45:57.882Z (10 months ago)
- Topics: ai, astradb, css3, langchain-js, nextjs14, openai, rag, reactjs, typescript
- Language: TypeScript
- Homepage: https://finance-ai-rag.vercel.app
- Size: 645 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.