Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add a discord rag chatbot example project #350

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Askir
Copy link
Contributor

@Askir Askir commented Jan 8, 2025

Allows to chat with our docs:

Answers look like this:
Screenshot 2025-01-08 at 16 48 15

I think it's quite neat but could still use some improvements before we deploy it on our actual discord server. For now this is a test, to see how well the sqlalchemy integration works. I already found a few issues which i will resolve in the next days I hope.

Mainly the parent relation does not quite works as I expected.

@Askir Askir requested a review from a team as a code owner January 8, 2025 15:50
@Askir Askir changed the title feat: add a discord rag chatbot example project docs: add a discord rag chatbot example project Jan 8, 2025
Copy link
Contributor

@adolsalamanca adolsalamanca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a couple of nits, might need another look from python experts but looks good to me, good job! 🎉

if context.is_offline_mode():
run_migrations_offline()
else:
run_migrations_online()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit, missing end of file new line


if __name__ == "__main__":
import asyncio
asyncio.run(main())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit, missing end of file new line

intents.message_content = True

client = MyClient(intents=intents, channel_id=os.environ['DISCORD_CHANNEL_ID'])
client.run(os.environ['DISCORD_BOT_TOKEN'])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit, missing end of file new line

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants