Skip to content

A chatbot created with Next.js and AI SDK, using Langchain with RetrievalQA to provide information from a PDF loaded into a vector store in MongoDB.

Notifications You must be signed in to change notification settings

eltatata/Nextjs-langchain-retrievalQA

Repository files navigation

Felipe — AI-Powered Assistant for Data Structures

alt text

Felipe is a lightweight AI assistant built with RAG (Retrieval-Augmented Generation) to help users ask questions and retrieve relevant information specifically about data structures.


🚀 Features

  • 💬 Ask natural language questions about data structures.
  • 📄 Information is retrieved from a structured PDF source.
  • ⚙️ Built using LangChain, Next.js, and Vercel AI SDK.
  • 🧠 MongoDB is used as the vector store for efficient semantic search.

📸 Demo

Demo de Felipe


📘 Source Material

All responses are based on a curated PDF about data structures.

👉 Download the PDF


🛠️ Tech Stack


📦 Installation

# Clone the repo
git clone https://github.com/eltatata/Nextjs-langchain-retrievalQA
cd Nextjs-langchain-retrievalQA

# Install dependencies
npm install

# Create your .env file based on .env.example and configure your keys
cp .env.example .env

# Run the development server
npm run dev

About

A chatbot created with Next.js and AI SDK, using Langchain with RetrievalQA to provide information from a PDF loaded into a vector store in MongoDB.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published