microsoft / RAG_Hack

Hack Together: RAG Hack | Register, Learn, Hack
MIT License
402 stars 84 forks source link

Discord Bot with Langchain API #132

Open bookpanda opened 2 months ago

bookpanda commented 2 months ago

Project Name

RAG-Bot

Description

Making a bot that can leverage documents with RAG to generate relevant responses.

Design

image

Discord Bot

Note: the requests the bot makes to the API have guild IDs in the url params in order to keep track of the loaded documents for each guild separately.

FastAPI

acts as an interface between the Discord bot and the Langchain ReAct Agent

LangChain ReAct Agent

To be precise, ReAct Agents are from LangGraph library, which is a part of LangChain. ReAct Agents find answers to queries using the tools we provided: Docs retriever tool and Tavily search tool.

Stack

Technology & Languages

Project Repository URL

https://github.com/seg-org/rag-api

Deployed Endpoint URL

https://discord.com/oauth2/authorize?client_id=1279707597397823538&permissions=2048&integration_type=0&scope=bot+applications.commands

Project Video

https://www.youtube.com/watch?v=FVFXi_xhey0

Team Members

bookpanda,Nacnano,Aphrodicez

multispark commented 1 month ago

Hello @bookpanda, thank you for participating in RAG Hack!

The team is working hard to distribute badges. Please have each team member fill out this form: aka.ms/raghack/badge-dist

Thank you!

bookpanda commented 1 month ago

Hi @multispark , I've informed my team. Thanks!