Skip to content

Commit

Permalink
Merge pull request #54 from blink1073/INTPYTHON-442
Browse files Browse the repository at this point in the history
INTPYTHON-442 Add autoformatting to repo
  • Loading branch information
blink1073 authored Dec 11, 2024
2 parents 2887c85 + e5c87fe commit 336e15b
Show file tree
Hide file tree
Showing 52 changed files with 86,357 additions and 85,408 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: "Tests"

on:
pull_request:
branches:
- "main"
push:
branches:
- "main"

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: pre-commit/[email protected]
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
.ipynb_checkpoints
**/.DS_Store

22 changes: 22 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-toml
- id: check-yaml
- id: debug-statements
- id: end-of-file-fixer
- id: forbid-new-submodules
- id: trailing-whitespace

- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.8.2
hooks:
# - id: ruff
# args: ["--fix", "--show-fixes"]
- id: ruff-format
exclude: notebooks/techniques/evaluating_information_retrival_techniques_mongondb_langchain.ipynb
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,26 +75,26 @@ An agent is an artificial computational entity with an awareness of its environm

| Title | Stack | Colab Link | Article Link |
|--------------------------------|----------------------|------------------------------------------------|--------------------------------------------------|
| 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) | |
| 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/) |
| 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) | |
| 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/) |
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/)
| 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/)|
| 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|
|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/)
|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) |
| 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) |
|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) |
| 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) |
|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/) | |


## ML
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.
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.

| Title | Colab Link |
|-------|------------|
| 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) |

## MongoDB Specific
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.
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.

| Title | Colab Link |
|-------|------------|
Expand Down
2 changes: 1 addition & 1 deletion apps/lyric-semantic-search/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Before starting this tutorial, you'll need to have the following:
- Maven 3.9.6+ configured for your project.

## Application Configuration
Configure your Spring application to set up the vector store and other necessary beans.
Configure your Spring application to set up the vector store and other necessary beans.

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.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ public interface LyricSearchRepository {
Optional<Boolean> deleteDocuments(List<String> ids);

List<Document> semanticSearchByLyrics(SearchRequest searchRequest);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ public Optional<Boolean> deleteDocuments(List<String> ids) {
public List<Document> semanticSearchByLyrics(SearchRequest searchRequest) {
return vectorStore.similaritySearch(searchRequest);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ spring.ai.openai.embedding.options.model=text-embedding-ada-002
spring.data.mongodb.uri=
spring.data.mongodb.database=lyrics
spring.ai.vectorstore.mongodb.indexName=vector_index
spring.ai.vectorstore.mongodb.collection-name=vector_store
spring.ai.vectorstore.mongodb.collection-name=vector_store
2 changes: 1 addition & 1 deletion apps/springai-terraform-rag/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -198,4 +198,4 @@
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
2 changes: 1 addition & 1 deletion apps/springai-terraform-rag/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,6 @@ To run this project, you'll need:

## Technologies Used
- **Spring Boot**: Java-based framework for building REST APIs.
- **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.
- **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.
- **OpenAI**: Generates embeddings for semantic searches.
- **Terraform**: Automates infrastructure management for MongoDB Atlas.
4 changes: 2 additions & 2 deletions apps/springai-terraform-rag/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ resource "mongodbatlas_database_user" "db_user" {
}

resource "mongodbatlas_search_index" "vector_search" {
name = "search-index"
name = "search-index"
project_id = mongodbatlas_project.rag_project.id
cluster_name = mongodbatlas_advanced_cluster.rag_cluster.name
type = "vectorSearch"
Expand All @@ -67,4 +67,4 @@ resource "mongodbatlas_search_index" "vector_search" {
"similarity": "cosine"
}]
EOF
}
}
2 changes: 1 addition & 1 deletion apps/springai-terraform-rag/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ variable "db_password" {
variable "ip_address" {
description = "IP address to whitelist"
type = string
default = "196.000.0.000"
default = "196.000.0.000"
}
Loading

0 comments on commit 336e15b

Please sign in to comment.