Skip to content

Commit

Permalink
docs: update Customer Service Discord Bot with Agentic RAG cookbooks
Browse files Browse the repository at this point in the history
  • Loading branch information
Wendong-Fan committed Dec 8, 2024
1 parent a960712 commit 75848d5
Show file tree
Hide file tree
Showing 2 changed files with 1,336 additions and 1,289 deletions.
2,617 changes: 1,331 additions & 1,286 deletions docs/cookbooks/customer_service_Discord_bot_using_SambaNova_with_agentic_RAG.ipynb

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -259,10 +259,10 @@
"\n",
"knowledge = firecrawl.crawl(\n",
" url=\"https://qdrant.tech/documentation/overview/\"\n",
")\n",
")[\"data\"][0][\"markdown\"]\n",
"\n",
"with open('local_data/qdrant_overview.md', 'w') as file:\n",
" file.write(knowledge[\"data\"][0][\"markdown\"])"
" file.write(knowledge)"
]
},
{
Expand Down Expand Up @@ -525,7 +525,9 @@
" if message.author.bot:\n",
" return\n",
" user_input = message.content\n",
"\n",
" \n",
" agent.reset()\n",
" agent.update_memory(knowledge_message, \"user\")\n",
" assistant_response = agent.step(user_input)\n",
"\n",
" response_content = assistant_response.msgs[0].content\n",
Expand Down

0 comments on commit 75848d5

Please sign in to comment.