Skip to content

Commit e5c87fe

Browse files
committed
INTPYTHON-442 Add autoformatting to repo
1 parent 2887c85 commit e5c87fe

File tree

52 files changed

+86357
-85408
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+86357
-85408
lines changed

.github/workflows/tests.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: "Tests"
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- "main"
7+
push:
8+
branches:
9+
- "main"
10+
11+
jobs:
12+
pre-commit:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-python@v5
17+
- uses: pre-commit/[email protected]

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
.ipynb_checkpoints
22
**/.DS_Store
3-

.pre-commit-config.yaml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
repos:
3+
- repo: https://github.com/pre-commit/pre-commit-hooks
4+
rev: v5.0.0
5+
hooks:
6+
- id: check-added-large-files
7+
- id: check-case-conflict
8+
- id: check-toml
9+
- id: check-yaml
10+
- id: debug-statements
11+
- id: end-of-file-fixer
12+
- id: forbid-new-submodules
13+
- id: trailing-whitespace
14+
15+
- repo: https://github.com/astral-sh/ruff-pre-commit
16+
# Ruff version.
17+
rev: v0.8.2
18+
hooks:
19+
# - id: ruff
20+
# args: ["--fix", "--show-fixes"]
21+
- id: ruff-format
22+
exclude: notebooks/techniques/evaluating_information_retrival_techniques_mongondb_langchain.ipynb

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -75,26 +75,26 @@ An agent is an artificial computational entity with an awareness of its environm
7575

7676
| Title | Stack | Colab Link | Article Link |
7777
|--------------------------------|----------------------|------------------------------------------------|--------------------------------------------------|
78-
| Agentic Factory Safety Assistant | LangGraph, Open AI, MongoDB, LangChain |[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/mongodb-developer/GenAI-Showcase/blob/main/notebooks/agents/agentic_rag_factory_safety_assistant_with_langgraph_langchain_mongodb.ipynb) | |
79-
| AI Research Assistant | FireWorks AI, MongoDB, LangChain |[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/mongodb-developer/GenAI-Showcase/blob/main/notebooks/agents/agent_fireworks_ai_langchain_mongodb.ipynb) | [![View Article](https://img.shields.io/badge/View%20Article-blue)](https://www.mongodb.com/developer/products/atlas/agent-fireworksai-mongodb-langchain/) |
78+
| Agentic Factory Safety Assistant | LangGraph, Open AI, MongoDB, LangChain |[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/mongodb-developer/GenAI-Showcase/blob/main/notebooks/agents/agentic_rag_factory_safety_assistant_with_langgraph_langchain_mongodb.ipynb) | |
79+
| AI Research Assistant | FireWorks AI, MongoDB, LangChain |[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/mongodb-developer/GenAI-Showcase/blob/main/notebooks/agents/agent_fireworks_ai_langchain_mongodb.ipynb) | [![View Article](https://img.shields.io/badge/View%20Article-blue)](https://www.mongodb.com/developer/products/atlas/agent-fireworksai-mongodb-langchain/) |
8080
AI Investment Researcher | MongoDB, CrewAI and LangChain | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/mongodb-developer/GenAI-Showcase/blob/main/notebooks/agents/crewai-mdb-agg.ipynb) | [![View Article](https://img.shields.io/badge/View%20Article-blue)](https://www.mongodb.com/developer/products/mongodb/augment-llm-capabilities-with-mdb-aggregation/)
8181
| Agentic RAG: Recommmendation System | Claude 3.5, LlamaIndex, MongoDB | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/mongodb-developer/GenAI-Showcase/blob/main/notebooks/agents/how_to_build_ai_agent_claude_3_5_sonnet_llamaindex_mongodb.ipynb) | [![View Article](https://img.shields.io/badge/View%20Article-blue)](https://www.mongodb.com/developer/products/atlas/claude_3_5_sonnet_rag/)|
8282
| Agentic HR Chatbot | Claude 3.5, LangGraph, MongoDB | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/mongodb-developer/GenAI-Showcase/blob/main/notebooks/agents/hr_agentic_chatbot_with_langgraph_claude.ipynb) | Coming Soon|
8383
|AWS Bedrock Agent | Claude 3, AWS Bedrock, Python, MongoDB | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/mongodb-developer/GenAI-Showcase/blob/main/notebooks/agents/mongodb_with_aws_bedrock_agent.ipynb) | [![View Article](https://img.shields.io/badge/View%20Article-blue)](https://www.mongodb.com/developer/products/atlas/mdb-aws-bedrock-agent-start/)
84-
|Asset Manager Assistant | LangGraph, OpenAI, Anthropic, MongoDB | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/mongodb-developer/GenAI-Showcase/blob/main/notebooks/agents/asset_management_analyst_assistant_agentic_chatbot_langgraph_mongodb.ipynb) |
85-
| Implementing Working Memory with Tavily and MongoDB | Python, Tavily, MongoDB | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/mongodb-developer/GenAI-Showcase/blob/main/notebooks/agents/implementing_working_memory_with_tavily_and_mongodb.ipynb) |
84+
|Asset Manager Assistant | LangGraph, OpenAI, Anthropic, MongoDB | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/mongodb-developer/GenAI-Showcase/blob/main/notebooks/agents/asset_management_analyst_assistant_agentic_chatbot_langgraph_mongodb.ipynb) |
85+
| Implementing Working Memory with Tavily and MongoDB | Python, Tavily, MongoDB | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/mongodb-developer/GenAI-Showcase/blob/main/notebooks/agents/implementing_working_memory_with_tavily_and_mongodb.ipynb) |
8686
|AI Food Assistant | Semantic Kernel, C#, OpenAI, MongoDB | [GitHub Repo](https://github.com/mongodb-developer/foodagent-dotnet) |[![View Article](https://img.shields.io/badge/View%20Article-blue)](https://www.mongodb.com/developer/languages/csharp/ai-agents-dotnet-with-semantic-kernel/) | |
8787

8888

8989
## ML
90-
This folder will contain all traditional machine learning tutorials. They include important explanations, step-by-step instructions, and everything a reader needs in order to be successful following the tutorial from beginning to end.
90+
This folder will contain all traditional machine learning tutorials. They include important explanations, step-by-step instructions, and everything a reader needs in order to be successful following the tutorial from beginning to end.
9191

9292
| Title | Colab Link |
9393
|-------|------------|
9494
| Written in the Stars: Predict Your Future With Tensorflow and MongoDB Charts | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://github.com/mongodb-developer/GenAI-Showcase/blob/main/notebooks/ml/tensorflow_mongodbcharts_horoscopes.ipynb) |
9595

9696
## MongoDB Specific
97-
These MongoDB specific tutorials are meant to showcase a specific MongoDB platform integrated with artificial intelligence or machine learning. These step-by-step tutorials will allow the reader to truly understand not only the platform, but also the AI use-case.
97+
These MongoDB specific tutorials are meant to showcase a specific MongoDB platform integrated with artificial intelligence or machine learning. These step-by-step tutorials will allow the reader to truly understand not only the platform, but also the AI use-case.
9898

9999
| Title | Colab Link |
100100
|-------|------------|

apps/lyric-semantic-search/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Before starting this tutorial, you'll need to have the following:
1515
- Maven 3.9.6+ configured for your project.
1616

1717
## Application Configuration
18-
Configure your Spring application to set up the vector store and other necessary beans.
18+
Configure your Spring application to set up the vector store and other necessary beans.
1919

2020
In our application properties, we are going to configure our MongoDB database, as well as everything we need for semantically searching our data. We'll also add in information such as our OpenAI embedding model and api key.
2121

apps/lyric-semantic-search/src/main/java/com/mongodb/lyric_semantic_search/repository/LyricSearchRepository.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ public interface LyricSearchRepository {
1313
Optional<Boolean> deleteDocuments(List<String> ids);
1414

1515
List<Document> semanticSearchByLyrics(SearchRequest searchRequest);
16-
}
16+
}

apps/lyric-semantic-search/src/main/java/com/mongodb/lyric_semantic_search/repository/LyricSearchRepositoryImpl.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ public Optional<Boolean> deleteDocuments(List<String> ids) {
3333
public List<Document> semanticSearchByLyrics(SearchRequest searchRequest) {
3434
return vectorStore.similaritySearch(searchRequest);
3535
}
36-
}
36+
}

apps/lyric-semantic-search/src/main/resources/application.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ spring.ai.openai.embedding.options.model=text-embedding-ada-002
55
spring.data.mongodb.uri=
66
spring.data.mongodb.database=lyrics
77
spring.ai.vectorstore.mongodb.indexName=vector_index
8-
spring.ai.vectorstore.mongodb.collection-name=vector_store
8+
spring.ai.vectorstore.mongodb.collection-name=vector_store

apps/springai-terraform-rag/LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,4 +198,4 @@
198198
distributed under the License is distributed on an "AS IS" BASIS,
199199
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200200
See the License for the specific language governing permissions and
201-
limitations under the License.
201+
limitations under the License.

apps/springai-terraform-rag/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,6 @@ To run this project, you'll need:
8585

8686
## Technologies Used
8787
- **Spring Boot**: Java-based framework for building REST APIs.
88-
- **MongoDB Atlas**: An integrated suite of data services (including Atlas Vector Search) centered around a cloud database designed to accelerate and simplify how you build with data. Build faster and build smarter with a developer data platform that helps solve your data challenges. Click [here](https://www.mongodb.com/products/platform/atlas-database) to learn more.
88+
- **MongoDB Atlas**: An integrated suite of data services (including Atlas Vector Search) centered around a cloud database designed to accelerate and simplify how you build with data. Build faster and build smarter with a developer data platform that helps solve your data challenges. Click [here](https://www.mongodb.com/products/platform/atlas-database) to learn more.
8989
- **OpenAI**: Generates embeddings for semantic searches.
9090
- **Terraform**: Automates infrastructure management for MongoDB Atlas.

apps/springai-terraform-rag/main.tf

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ resource "mongodbatlas_database_user" "db_user" {
5353
}
5454

5555
resource "mongodbatlas_search_index" "vector_search" {
56-
name = "search-index"
56+
name = "search-index"
5757
project_id = mongodbatlas_project.rag_project.id
5858
cluster_name = mongodbatlas_advanced_cluster.rag_cluster.name
5959
type = "vectorSearch"
@@ -67,4 +67,4 @@ resource "mongodbatlas_search_index" "vector_search" {
6767
"similarity": "cosine"
6868
}]
6969
EOF
70-
}
70+
}

apps/springai-terraform-rag/variables.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ variable "db_password" {
3838
variable "ip_address" {
3939
description = "IP address to whitelist"
4040
type = string
41-
default = "196.000.0.000"
41+
default = "196.000.0.000"
4242
}

0 commit comments

Comments
 (0)