/demo-RAG-discord-bot

Primary LanguageRustApache License 2.0Apache-2.0

Use saved embeddings in a Discord chat

If you want to build locally, make sure you have installed Rust and added the wasm32-wasi target.

cargo build --target wasm32-wasi --release

Settings when you deploy the flow function on flows.network. Click on "Advanced" when you import the GitHub repo to flows.network to enter the setting names and values below.

Name Value
discord_token Copied from Discord Developer Portal
bot_id Copied from Discord Developer Portal -- General information -- Application ID
collection_name The collection name you used to store the embeddings, e.g., my_kb
error_mesg Sorry, an error has occurred or your question is not related to the Rust programming language. Please try again later.
system_prompt You are an expert in the Rust programming language. Please answer the question based on the context provided. CONTEXT: