This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Define the base command and endpoint | |
| URL="https://model.dev.h2o.ai/496095fa-d429-4da0-b7d1-8239fe644410/model/score" | |
| BASE_CMD="ab -T \"application/json\" " | |
| TEST_SIZE=500 | |
| # Initialize the results table | |
| echo "| Test Size | Batch Size | Replicas | Concurrency | r/s |" | |
| echo "|-----------|------------|----------|-------------|-----|" | |
| # Define test scenarios |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| print("Hello, World!") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| h2oGPTe Banking RAG Demo | |
| Demonstrates using h2oGPTe for intelligent document processing in financial services | |
| This demo shows how to: | |
| 1. Crawl relevant banking documentation | |
| 2. Create a knowledge base | |
| 3. Perform intelligent Q&A using RAG | |
| """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Python Multi-threading Examples | |
| ----------------------------- | |
| This example demonstrates three common patterns for multi-threading in Python: | |
| 1. Basic thread synchronization using Lock | |
| 2. Thread communication using Queue | |
| 3. Modern thread pools using concurrent.futures | |
| Key concepts demonstrated: | |
| - Thread creation and management |
OlderNewer