Skip to main content

Posts

Prompt Engineering & Orchestration

                              Photo by Andrea Piacquadio Prompt engineering is a buzzword, especially for Software Development. Today we are going to learn by developing a very simple application. We are going to assemble a set of prompts into a working prototype service, utilizing orchestration tools to link multiple calls to AI. Python code below import json import requests # Define the AI endpoints ai_endpoints = {     "text_generation": "https://api.openai.com/v1/engines/davinci/completions",     "image_generation": "https://api.openai.com/v1/images/generation" } # Define the orchestration tool class Orchestrator:     def __init__(self):         self.ai_endpoints = ai_endpoints     def call_ai(self, endpoint, prompt):         headers = {             "Authorization": "Bearer YOUR_API_KE...

High-level Architectural Patterns and Low-level Design Patterns

                                                                                                              Photo by Alex Fu Let's discuss high-level architectural patterns and low-level design patterns to solve software problems. High-level architectural patterns are patterns that describe the overall structure of a software system. They are used to design systems that are scalable, maintainable, and reliable. Some examples of high-level architectural patterns include: Model-View-Controller (MVC) Client-Server Microservices Event-Driven Architecture Low-level design patterns are patterns that describe the design of individual components within a softwar...