Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/replicate/replicate-support-bot
A Discord bot that answers questions about Replicate.
https://github.com/replicate/replicate-support-bot
bot discord embeddings ml postgres replicate support
Last synced: 2 days ago
JSON representation
A Discord bot that answers questions about Replicate.
- Host: GitHub
- URL: https://github.com/replicate/replicate-support-bot
- Owner: replicate
- Created: 2023-04-11T21:08:14.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-05T12:41:37.000Z (10 months ago)
- Last Synced: 2024-01-05T13:51:21.591Z (10 months ago)
- Topics: bot, discord, embeddings, ml, postgres, replicate, support
- Language: TypeScript
- Homepage: https://aurdal.group/blog/make-a-chatgpt-discord-bot-answer-questions-about-your-own-documentation/
- Size: 1.15 MB
- Stars: 7
- Watchers: 16
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Replicate support bot
A Discord bot that answers questions about [Replicate](https://replicate.com). Use this to make ChatGPT answer questions based on **your** documentation.
[Read the blog post](https://aurdal.group/blog/make-a-chatgpt-discord-bot-answer-questions-about-your-own-documentation/) for more details on how this app was built.
![Replicare](./demo.gif)
## 1. How it works
The goal is to make ChatGPT answer questions within a limited context, where the context is a relevant section of a larger documentation. To do this we use [embeddings](https://platform.openai.com/docs/guides/embeddings). In short, embeddings are tokens converted into vectors that can be used to calculate how closely related two strings are. If we split the documentation into chunks and encode them as embeddings in a vector database, we can query relevant documentation chunks later if we use the same encoding on questions. The relevant documentation chunks will then be used as context for a ChatGPT session.
## Update 5 Jan 2024
The bot is updated to use [Replicate Retriever](https://github.com/replicate/replicate-retriever). This is the retrieval step that is separated out into its own API.