Skip to content

Commit 54a9f83

Browse files
committed
Fix module imports
1 parent 52b91b7 commit 54a9f83

File tree

7 files changed

+9
-10
lines changed

7 files changed

+9
-10
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"codespaces": {
1414
"openFiles": [
1515
"INSTRUCTIONS.md",
16-
"mongodb-groceries-agent/agent.py"
16+
"mongodb_groceries_agent/agent.py"
1717
]
1818
},
1919
"vscode": {

INSTRUCTIONS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ In this workshop, you’ll build a **Grocery Shopping AI agent** step by step. E
1919

2020
In this step, you’ll create your first AI Agent with ADK. At this stage, the agent won’t have any tools — which means it won’t be able to do much yet. This will demonstrate why tools are essential.
2121

22-
1. Open the file `mongodb-groceries-agent/agent.py`.
22+
1. Open the file `mongodb_groceries_agent/agent.py`.
2323

2424
1. You’ll see a few Python imports. You’ll use these later to implement the tools. You'll also see a placeholder for a passkey:
2525

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ cd MongoDB-VertexAI-ADK
3838
Import the provided dataset into your MongoDB database using the following command (replace placeholders as needed):
3939

4040
```bash
41-
mongoimport --uri "$CONNECTION_STRING" --db "$DATABASE_NAME" --collection "$COLLECTION_NAME" --type csv --headerline --file mongodb-groceries-agent/dataset.csv
41+
mongoimport --uri "$CONNECTION_STRING" --db "$DATABASE_NAME" --collection "$COLLECTION_NAME" --type csv --headerline --file mongodb_groceries_agent/dataset.csv
4242
```
4343

4444
4. **Generate Embeddings for the Inventory**
4545

4646
After loading the data, you need to generate vector embeddings for each product. Run the following script:
4747

4848
```bash
49-
python mongodb-groceries-agent/create-embeddings.py
49+
python mongodb_groceries_agent/create-embeddings.py
5050
```
5151

5252
This will process all products in the collection and add/update the embedding field required for semantic search.
@@ -99,7 +99,7 @@ GOOGLE_API_KEY="Your Google Cloud API key"
9999

100100
5. **Run the agent using ADK**
101101

102-
Navigate to the `mongodb-groceries-agent` directory and run:
102+
Navigate to the `mongodb_groceries_agent` directory and run:
103103

104104
```bash
105105
adk web
@@ -112,9 +112,9 @@ adk web
112112
- You can extend the agent with new tools or integrate it into a larger application.
113113

114114
## Project Structure
115-
- `mongodb-groceries-agent/agent.py`: Main agent logic
116-
- `mongodb-groceries-agent/create-embeddings.py`: Utility for creating embeddings
117-
- `mongodb-groceries-agent/dataset.csv`: Example dataset
115+
- `mongodb_groceries_agent/agent.py`: Main agent logic
116+
- `mongodb_groceries_agent/create-embeddings.py`: Utility for creating embeddings
117+
- `mongodb_groceries_agent/dataset.csv`: Example dataset
118118

119119
## Notes
120120
- Ensure your Google Cloud and MongoDB credentials are valid and have the necessary permissions.

mongodb-groceries-agent/.env

Lines changed: 0 additions & 2 deletions
This file was deleted.
File renamed without changes.

mongodb-groceries-agent/agent.py renamed to mongodb_groceries_agent/agent.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from google import genai
66
from google.genai import types
77
from utils import set_env
8+
from mongodb_groceries_agent.utils import set_env
89

910
PASSKEY = "<ASK YOUR INSTRUCTOR FOR THE PASSKEY>"
1011
set_env(PASSKEY)
File renamed without changes.

0 commit comments

Comments
 (0)