Skip to content

Commit

Permalink
added atlas instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
Pash10g committed Jan 8, 2025
1 parent a09ff59 commit 4425751
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions notebooks/agents/smolagents_multi-agent_micro_agents.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,37 @@
"- MongoDB for data persistence\n",
"- DeepSeek Chat as the LLM model\n",
"\n",
"# Using Smolagents with MongoDB Atlas\n",
"\n",
"This notebook demonstrates how to use [Smolagents](https://github.com/huggingface/smolagents) to interact with MongoDB Atlas for building AI-powered applications. We'll explore how to create tools that leverage MongoDB's aggregation capabilities to analyze and extract insights from data.\n",
"\n",
"## Prerequisites\n",
"\n",
"Before running this notebook, you'll need:\n",
"\n",
"1. A MongoDB Atlas account and cluster\n",
"2. Python environment with required packages\n",
"3. OpenAI API key for GPT-4 access\n",
"\n",
"## Setting Up MongoDB Atlas\n",
"\n",
"1. Create a free MongoDB Atlas account at [https://www.mongodb.com/cloud/atlas/register](https://www.mongodb.com/cloud/atlas/register)\n",
"2. [Create a new cluster](https://www.mongodb.com/docs/atlas/tutorial/create-new-cluster/) (free tier is sufficient)\n",
"3. Configure network access by adding your IP address\n",
"4. Create a database user with read/write permissions\n",
"5. Get your connection string from Atlas UI (Click \"Connect\" > \"Connect your application\")\n",
"6. Replace `<password>` in the connection string with your database user's password\n",
"7. Enable network access from your IP address in the Network Access settings\n",
"\n",
"\n",
"### Security Considerations\n",
"\n",
"When working with MongoDB Atlas:\n",
"- Never commit connection strings with credentials to version control\n",
"- Use environment variables or secure secret management\n",
"- Restrict database user permissions to only what's needed\n",
"- Enable IP allowlist in Atlas Network Access settings\n",
"\n",
"## Setup\n",
"First, let's install required dependencies:"
]
Expand Down

0 comments on commit 4425751

Please sign in to comment.