{"repo":"antoinelrnld/discord-rag","free":true,"listed":false,"github":"https://github.com/antoinelrnld/discord-rag","clone":"git clone https://github.com/antoinelrnld/discord-rag.git","description":"Easily create a RAG app based on your Discord messages","language":"Python","stars":25,"topics":["discord","discord-bot","genai","llm","rag","bot","chatgpt","chunking","embedding","langchain"],"license":"MIT","category":"ai-agents","readme_excerpt":"Discord-RAG This repo aims to provide a simple and fast way to create a RAG (Retrieval-Augmented Generation) application based on your Discord messages. This allows you to use an LLM that is aware of the context of your messages and can generate responses based on that. The repo also provides code to create a Discord bot that can be used to interact with the model directly in your Discord server. Ask for old informations that were discussed long ago, make summaries, ask questions about you and your friends, have fun with the bot! Here is a high-level overview of the architecture we are going to build: To get started, you will need to get through the following steps: 1. Prerequisites 2. Initial Data Ingestion 3. Run the Indexing Pipeline 4. Launch the API 5. Discord Bot [!WARNING] Keep in mind that the project is in its early stages and is only a prototype for now. 1. Prerequisites - A Discord Bot Token - An OpenAI API Key - Docker (Recommended) - Docker Compose (Recommended) 2. Initial Data Ingestion First, you will need to export the messages from your Discord server to store them elsewhere. We are going to store them in a MongoDB database. You can either use your existing MongoDB instance or get one by using the docker-compose.yml file. [!IMPORTANT] Don't forget to set the required environment variables in the .env file. You will need the IDs of the channels you want to export the messages from. (Comma-separated) You can get it by right-clicking on the channel and selecting","default_branch":null,"files":null,"tree":[],"storefront":"/r/antoinelrnld","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/antoinelrnld/discord-rag/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}