Python Archives - gettectonic.com - Page 2
pydanticai

Pydantic AI

The evaluation of agentic applications is most effective when integrated into the development process, rather than being an afterthought. For this to succeed, developers must be able to mock both internal and external dependencies of the agent being built. PydanticAI introduces a groundbreaking framework that supports dependency injection from the start, enabling developers to build agentic applications with an evaluation-driven approach. An architectural parallel can be drawn to the historic Krakow Cloth Hall, a structure refined over centuries through evaluation-driven enhancements. Similarly, PydanticAI allows developers to iteratively address challenges during development, ensuring optimal outcomes. Challenges in Developing GenAI Applications Developers of LLM-based applications face recurring challenges, which become significant during production deployment: To address non-determinism, developers must adopt evaluation-driven development, a method akin to test-driven development. This approach focuses on designing software with guardrails, real-time monitoring, and human oversight, accommodating systems that are only x% correct. The Promise of PydanticAI PydanticAI stands out as an agent framework that supports dependency injection, model-agnostic workflows, and evaluation-driven development. Its design is Pythonic and simplifies testing by allowing the injection of mock dependencies. For instance, in contrast to frameworks like Langchain, where dependency injection is cumbersome, PydanticAI streamlines this process, making the workflows more readable and efficient. Building an Evaluation-Driven Application with PydanticAI Example Use Case: Evaluating Mountain Data By employing tools like Wikipedia as a data source, the agent can fetch accurate mountain heights during production. For testing, developers can inject mocked responses, ensuring predictable outputs and faster development cycles. Advancing Agentic Applications with PydanticAI PydanticAI provides the building blocks for creating scalable, evaluation-driven GenAI applications. Its support for dependency injection, structured outputs, and model-agnostic workflows addresses core challenges, empowering developers to create robust and adaptive LLM-powered systems. This paradigm shift ensures that evaluation is seamlessly embedded into the development lifecycle, paving the way for more reliable and efficient agentic applications. Like Related Posts Who is Salesforce? Who is Salesforce? Here is their story in their own words. From our inception, we’ve proudly embraced the identity of Read more Salesforce Marketing Cloud Transactional Emails Salesforce Marketing Cloud Transactional Emails are immediate, automated, non-promotional messages crucial to business operations and customer satisfaction, such as order Read more Salesforce Unites Einstein Analytics with Financial CRM Salesforce has unveiled a comprehensive analytics solution tailored for wealth managers, home office professionals, and retail bankers, merging its Financial Read more AI-Driven Propensity Scores AI plays a crucial role in propensity score estimation as it can discern underlying patterns between treatments and confounding variables Read more

Read More
Python-Based Reasoning

Python-Based Reasoning

Introducing a Python-Based Reasoning Engine for Deterministic AI As the demand for deterministic systems grows reviving foundational ideas for the age of large language models (LLMs) is here. The Challenge One of the critical issues with modern AI systems is establishing constraints around how they validate and reason about incoming data. As we increasingly rely on stochastic LLMs to process unstructured data, enforcing rules and guardrails becomes vital for ensuring reliability and consistency. The Solution Thus a company has developed a Python-based reasoning and validation framework inspired by Pydantic, designed to empower developers and non-technical domain experts to create sophisticated rule engines. The system is: By transforming Standard Operating Procedures (SOPs) and business guardrails into enforceable code, this symbolic reasoning framework addresses the need for structured, interpretable, and reliable AI systems. Key Features System Architecture The framework includes five core components: Types of Engines Case Studies 1. Validation Engine: Mining Company Compliance A mining company needed to validate employee qualifications against region-specific requirements. The system was configured to check rules such as minimum age and required certifications for specific roles. Input Example:Employee data and validation rules were modeled as JSON: jsonCopy code{ “employees”: [ { “name”: “Sarah”, “age”: 25, “documents”: [{ “type”: “safe_handling_at_work” }] }, { “name”: “John”, “age”: 17, “documents”: [{ “type”: “heavy_lifting” }] } ], “rules”: [ { “type”: “min_age”, “parameters”: { “min_age”: 18 } } ] } Output:Violations, such as “Minimum age must be 18,” were flagged immediately, enabling quick remediation. 2. Reasoning Engine: Solving the River Crossing Puzzle To showcase its capabilities, we modeled the classic river crossing puzzle, where a farmer must transport a wolf, a goat, and a cabbage across a river without leaving incompatible items together. Steps Taken: Enhanced Scenario:Adding a new rule—“Wolf cannot be left with a chicken”—created an unsolvable scenario. By introducing a compensatory rule, “Farmer can carry two items at once,” the system adapted and solved the puzzle with fewer moves. Developer Insights The system supports rapid iteration and debugging. For example, adding rules is as simple as defining Python classes: pythonCopy codeclass GoatCabbageRule(Rule): def evaluate(self, state): return not (state.goat == state.cabbage and state.farmer != state.goat) def get_description(self): return “Goat cannot be left alone with cabbage” Real-World Impact This framework accelerates development by enabling non-technical stakeholders to contribute to rule creation through natural language, with developers approving and implementing these rules. This process reduces development time by up to 5x and adapts seamlessly to varied use cases, from logistics to compliance. 🔔🔔 Follow us on LinkedIn 🔔🔔 Like Related Posts Who is Salesforce? Who is Salesforce? Here is their story in their own words. From our inception, we’ve proudly embraced the identity of Read more Salesforce Marketing Cloud Transactional Emails Salesforce Marketing Cloud Transactional Emails are immediate, automated, non-promotional messages crucial to business operations and customer satisfaction, such as order Read more Salesforce Unites Einstein Analytics with Financial CRM Salesforce has unveiled a comprehensive analytics solution tailored for wealth managers, home office professionals, and retail bankers, merging its Financial Read more AI-Driven Propensity Scores AI plays a crucial role in propensity score estimation as it can discern underlying patterns between treatments and confounding variables Read more

Read More
Salesforce Labs

Salesforce ProVision

ProVision: Programmatic Generation of Multimodal Instruction Data for Enhanced Model Training The Challenge of Multimodal Instruction Data Recent advances in multimodal language models (MLMs) like GPT-4V and BLIP have enabled sophisticated image-based reasoning, such as answering complex queries like “How many students are raising their hands in this image?” However, training these models requires high-quality instruction data—paired visual content with corresponding questions and answers—which is difficult to generate at scale. Existing approaches face key limitations: Introducing ProVision: A Scalable, Programmatic Solution To address these challenges, we developed ProVision, a framework that automatically synthesizes multimodal instruction data using scene graphs and human-written Python programs. How It Works: Key Advantages Over Traditional Methods:✔ Interpretability – Rules-based generation ensures factual correctness.✔ Scalability – New data generators can be added to expand question types.✔ Flexibility – Works with both annotated and automatically generated scene graphs. ProVision-10M: A Large-Scale Multimodal Dataset Our framework integrates 24 single-image and 14 multi-image instruction generators, producing over 10 million high-quality Q&A pairs—publicly released as ProVision-10M. Performance Improvements in Fine-Tuning MLMs We evaluated ProVision-10M by incorporating it into: Results: Future Directions ProVision opens new possibilities for scalable, high-quality multimodal training data. Future work could: By enabling systematic, rule-based instruction synthesis, ProVision provides a cost-effective, transparent, and scalable alternative to traditional data generation methods—helping advance the next generation of multimodal AI. Like Related Posts Who is Salesforce? Who is Salesforce? Here is their story in their own words. From our inception, we’ve proudly embraced the identity of Read more Salesforce Marketing Cloud Transactional Emails Salesforce Marketing Cloud Transactional Emails are immediate, automated, non-promotional messages crucial to business operations and customer satisfaction, such as order Read more Salesforce Unites Einstein Analytics with Financial CRM Salesforce has unveiled a comprehensive analytics solution tailored for wealth managers, home office professionals, and retail bankers, merging its Financial Read more AI-Driven Propensity Scores AI plays a crucial role in propensity score estimation as it can discern underlying patterns between treatments and confounding variables Read more

Read More
ChatGPT Memory Announced

OpenAI ChatGPT Prompt Guide

Mastering AI Prompting: OpenAI’s Guide to Optimal Model Performance The Art of Effective AI Communication OpenAI has unveiled essential guidelines for optimizing interactions with their reasoning models. As AI systems grow more sophisticated, the quality of user prompts becomes increasingly critical in determining output quality. This guide distills OpenAI’s latest recommendations into actionable strategies for developers, business leaders, and researchers seeking to maximize their AI results. Core Principles for Superior Prompting 1. Clarity Over Complexity Best Practice: Direct, uncomplicated prompts yield better results than convoluted instructions. Example Evolution: Why it works: Modern models possess sophisticated internal reasoning – trust their native capabilities rather than over-scripting the thought process. 2. Rethinking Step-by-Step Instructions New Insight: Explicit “think step by step” prompts often reduce effectiveness rather than enhance it. Example Pair: Pro Tip: For explanations, request the answer first then ask “Explain your calculation” as a follow-up. 3. Structured Inputs with Delimiters For Complex Queries: Use clear visual markers to separate instructions from content. Implementation: markdown Copy Compare these two product descriptions: — [Description A] — [Description B] — Benefit: Reduces misinterpretation by 37% in testing (OpenAI internal data). 4. Precision in Retrieval-Augmented Generation Critical Adjustment: More context ≠ better results. Be surgical with reference materials. Optimal Approach: 5. Constraint-Driven Prompting Formula: Action + Domain + Constraints = Optimal Output Example Progression: 6. Iterative Refinement Process Workflow Strategy: Case Study: Advanced Techniques for Professionals For Developers: python Copy # When implementing RAG systems: optimal_context = filter_documents( query=user_query, relevance_threshold=0.85, max_tokens=1500 ) For Business Analysts: Dashboard Prompt Template:“Identify [X] key trends in [dataset] focusing on [specific metrics]. Format as: 1) Trend 2) Business Impact 3) Recommended Action” For Researchers: “Critique this methodology [paste abstract] focusing on: 1) Sample size adequacy 2) Potential confounding variables 3) Statistical power considerations” Performance Benchmarks Prompt Style Accuracy Score Response Time Basic 72% 1.2s Optimized 89% 0.8s Over-engineered 65% 2.1s Implementation Checklist The Future of Prompt Engineering As models evolve, expect: Final Recommendation: Regularly revisit prompting strategies as model capabilities progress. What works today may become suboptimal in future iterations. Like Related Posts Who is Salesforce? Who is Salesforce? Here is their story in their own words. From our inception, we’ve proudly embraced the identity of Read more Salesforce Unites Einstein Analytics with Financial CRM Salesforce has unveiled a comprehensive analytics solution tailored for wealth managers, home office professionals, and retail bankers, merging its Financial Read more AI-Driven Propensity Scores AI plays a crucial role in propensity score estimation as it can discern underlying patterns between treatments and confounding variables Read more Tectonic’s Successful Salesforce Track Record Salesforce Technology Services Integrator – Tectonic has successfully delivered Salesforce in a variety of industries including Public Sector, Hospitality, Manufacturing, Read more

Read More

Why Build a General-Purpose Agent?

A general-purpose LLM agent serves as an excellent starting point for prototyping use cases and establishing the foundation for a custom agentic architecture tailored to your needs. What is an LLM Agent? An LLM (Large Language Model) agent is a program where execution logic is governed by the underlying model. Unlike approaches such as few-shot prompting or fixed workflows, LLM agents adapt dynamically. They can determine which tools to use (e.g., web search or code execution), how to use them, and iterate based on results. This adaptability enables handling diverse tasks with minimal configuration. Agentic Architectures Explained:Agentic systems range from the reliability of fixed workflows to the flexibility of autonomous agents. For instance: Your architecture choice will depend on the desired balance between reliability and flexibility for your use case. Building a General-Purpose LLM Agent Step 1: Select the Right LLM Choosing the right model is critical for performance. Evaluate based on: Model Recommendations (as of now): For simpler use cases, smaller models running locally can also be effective, but with limited functionality. Step 2: Define the Agent’s Control Logic The system prompt differentiates an LLM agent from a standalone model. This prompt contains rules, instructions, and structures that guide the agent’s behavior. Common Agentic Patterns: Starting with ReAct or Plan-then-Execute patterns is recommended for general-purpose agents. Step 3: Define the Agent’s Core Instructions To optimize the agent’s behavior, clearly define its features and constraints in the system prompt: Example Instructions: Step 4: Define and Optimize Core Tools Tools expand an agent’s capabilities. Common tools include: For each tool, define: Example: Implementing an Arxiv API tool for scientific queries. Step 5: Memory Handling Strategy Since LLMs have limited memory (context window), a strategy is necessary to manage past interactions. Common approaches include: For personalization, long-term memory can store user preferences or critical information. Step 6: Parse the Agent’s Output To make raw LLM outputs actionable, implement a parser to convert outputs into a structured format like JSON. Structured outputs simplify execution and ensure consistency. Step 7: Orchestrate the Agent’s Workflow Define orchestration logic to handle the agent’s next steps after receiving an output: Example Orchestration Code: pythonCopy codedef orchestrator(llm_agent, llm_output, tools, user_query): while True: action = llm_output.get(“action”) if action == “tool_call”: tool_name = llm_output.get(“tool_name”) tool_params = llm_output.get(“tool_params”, {}) if tool_name in tools: try: tool_result = tools[tool_name](**tool_params) llm_output = llm_agent({“tool_output”: tool_result}) except Exception as e: return f”Error executing tool ‘{tool_name}’: {str(e)}” else: return f”Error: Tool ‘{tool_name}’ not found.” elif action == “return_answer”: return llm_output.get(“answer”, “No answer provided.”) else: return “Error: Unrecognized action type from LLM output.” This orchestration ensures seamless interaction between tools, memory, and user queries. When to Consider Multi-Agent Systems A single-agent setup works well for prototyping but may hit limits with complex workflows or extensive toolsets. Multi-agent architectures can: Starting with a single agent helps refine workflows, identify bottlenecks, and scale effectively. By following these steps, you’ll have a versatile system capable of handling diverse use cases, from competitive analysis to automating workflows. Like Related Posts Who is Salesforce? Who is Salesforce? Here is their story in their own words. From our inception, we’ve proudly embraced the identity of Read more Salesforce Unites Einstein Analytics with Financial CRM Salesforce has unveiled a comprehensive analytics solution tailored for wealth managers, home office professionals, and retail bankers, merging its Financial Read more AI-Driven Propensity Scores AI plays a crucial role in propensity score estimation as it can discern underlying patterns between treatments and confounding variables Read more Tectonic’s Successful Salesforce Track Record Salesforce Technology Services Integrator – Tectonic has successfully delivered Salesforce in a variety of industries including Public Sector, Hospitality, Manufacturing, Read more

Read More
Python-Based Reasoning Engine

Python-Based Reasoning Engine

Introducing a Python-Based Reasoning Engine for Deterministic AI In the age of large language models (LLMs), there’s a growing need for deterministic systems that enforce rules and constraints while reasoning about information. We’ve developed a Python-based reasoning and validation framework that bridges the gap between traditional rule-based logic and modern AI capabilities, inspired by frameworks like Pydantic. This approach is designed for developers and non-technical experts alike, making it easy to build complex rule engines that translate natural language instructions into enforceable code. Our fine-tuned model automates the creation of rules while ensuring human oversight for quality and conflict detection. The result? Faster implementation of rule engines, reduced developer overhead, and flexible extensibility across domains. The Framework at a Glance Our system consists of five core components: To analogize, this framework operates like a game of chess: Our framework supports two primary use cases: Key Features and Benefits Case Studies Validation Engine: Ensuring Compliance A mining company needed to validate employee qualifications based on age, region, and role. Example Data Structure: jsonCopy code{ “employees”: [ { “name”: “Sarah”, “age”: 25, “role”: “Manager”, “documents”: [“safe_handling_at_work”, “heavy_lifting”] }, { “name”: “John”, “age”: 17, “role”: “Laborer”, “documents”: [“heavy_lifting”] } ] } Rules: jsonCopy code{ “rules”: [ { “type”: “min_age”, “parameters”: { “min_age”: 18 } }, { “type”: “dozer_operator”, “parameters”: { “document_type”: “dozer_qualification” } } ] } Outcome:The system flagged violations, such as employees under 18 or missing required qualifications, ensuring compliance with organizational rules. Reasoning Engine: Solving the River Crossing Puzzle The classic river crossing puzzle demonstrates the engine’s reasoning capabilities. Problem Setup:A farmer must ferry a goat, a wolf, and a cabbage across a river, adhering to specific constraints (e.g., the goat cannot be left alone with the cabbage). Steps: Output:The engine generated a solution in 0.0003 seconds, showcasing its efficiency in navigating complex logic. Advanced Features: Dynamic Rule Expansion The system supports real-time rule adjustments. For instance, adding a “wolf cannot be left with a chicken” constraint introduces a conflict. By extending rules (e.g., allowing the farmer to carry two items), the engine dynamically resolves previously unsolvable scenarios. Sample Code Snippet: pythonCopy codeclass CarryingCapacityRule(Rule): def evaluate(self, state): items_moved = sum(1 for item in [‘wolf’, ‘goat’, ‘cabbage’, ‘chicken’] if getattr(state, item) == state.farmer) return items_moved <= 2 def get_description(self): return “Farmer can carry up to two items at a time” Result:The adjusted engine solved the puzzle in three moves, down from seven, while maintaining rule integrity. Collaborative UI for Rule Creation Our user interface empowers domain experts to define rules without writing code. Developers validate these rules, which are then seamlessly integrated into the system. Visual Workflow: Like Related Posts Who is Salesforce? Who is Salesforce? Here is their story in their own words. From our inception, we’ve proudly embraced the identity of Read more Salesforce Unites Einstein Analytics with Financial CRM Salesforce has unveiled a comprehensive analytics solution tailored for wealth managers, home office professionals, and retail bankers, merging its Financial Read more AI-Driven Propensity Scores AI plays a crucial role in propensity score estimation as it can discern underlying patterns between treatments and confounding variables Read more Tectonic’s Successful Salesforce Track Record Salesforce Technology Services Integrator – Tectonic has successfully delivered Salesforce in a variety of industries including Public Sector, Hospitality, Manufacturing, Read more

Read More

Empowering LLMs with a Robust Agent Framework

PydanticAI: Empowering LLMs with a Robust Agent Framework As the Generative AI landscape evolves at a historic pace, AI agents and multi-agent systems are expected to dominate 2025. Industry leaders like AWS, OpenAI, and Microsoft are racing to release frameworks, but among these, PydanticAI stands out for its unique integration of the powerful Pydantic library with large language models (LLMs). Why Pydantic Matters Pydantic, a Python library, simplifies data validation and parsing, making it indispensable for handling external inputs such as JSON, user data, or API responses. By automating data checks (e.g., type validation and format enforcement), Pydantic ensures data integrity while reducing errors and development effort. For instance, instead of manually validating fields like age or email, Pydantic allows you to define models that automatically enforce structure and constraints. Consider the following example: pythonCopy codefrom pydantic import BaseModel, EmailStr class User(BaseModel): name: str age: int email: EmailStr user_data = {“name”: “Alice”, “age”: 25, “email”: “alice@example.com”} user = User(**user_data) print(user.name) # Alice print(user.age) # 25 print(user.email) # alice@example.com If invalid data is provided (e.g., age as a string), Pydantic throws a detailed error, making debugging straightforward. What Makes PydanticAI Special Building on Pydantic’s strengths, PydanticAI brings structured, type-safe responses to LLM-based AI agents. Here are its standout features: Building an AI Agent with PydanticAI Below is an example of creating a PydanticAI-powered bank support agent. The agent interacts with customer data, evaluates risks, and provides structured advice. Installation bashCopy codepip install ‘pydantic-ai-slim[openai,vertexai,logfire]’ Example: Bank Support Agent pythonCopy codefrom dataclasses import dataclass from pydantic import BaseModel, Field from pydantic_ai import Agent, RunContext from bank_database import DatabaseConn @dataclass class SupportDependencies: customer_id: int db: DatabaseConn class SupportResult(BaseModel): support_advice: str = Field(description=”Advice for the customer”) block_card: bool = Field(description=”Whether to block the customer’s card”) risk: int = Field(description=”Risk level of the query”, ge=0, le=10) support_agent = Agent( ‘openai:gpt-4o’, deps_type=SupportDependencies, result_type=SupportResult, system_prompt=( “You are a support agent in our bank. Provide support to customers and assess risk levels.” ), ) @support_agent.system_prompt async def add_customer_name(ctx: RunContext[SupportDependencies]) -> str: customer_name = await ctx.deps.db.customer_name(id=ctx.deps.customer_id) return f”The customer’s name is {customer_name!r}” @support_agent.tool async def customer_balance(ctx: RunContext[SupportDependencies], include_pending: bool) -> float: return await ctx.deps.db.customer_balance( id=ctx.deps.customer_id, include_pending=include_pending ) async def main(): deps = SupportDependencies(customer_id=123, db=DatabaseConn()) result = await support_agent.run(‘What is my balance?’, deps=deps) print(result.data) result = await support_agent.run(‘I just lost my card!’, deps=deps) print(result.data) Key Concepts Why PydanticAI Matters PydanticAI simplifies the development of production-ready AI agents by bridging the gap between unstructured LLM outputs and structured, validated data. Its ability to handle complex workflows with type safety and its seamless integration with modern AI tools make it an essential framework for developers. As we move toward a future dominated by multi-agent AI systems, PydanticAI is poised to be a cornerstone in building reliable, scalable, and secure AI-driven applications. Like1 Related Posts Who is Salesforce? Who is Salesforce? Here is their story in their own words. From our inception, we’ve proudly embraced the identity of Read more Salesforce Unites Einstein Analytics with Financial CRM Salesforce has unveiled a comprehensive analytics solution tailored for wealth managers, home office professionals, and retail bankers, merging its Financial Read more AI-Driven Propensity Scores AI plays a crucial role in propensity score estimation as it can discern underlying patterns between treatments and confounding variables Read more Tectonic’s Successful Salesforce Track Record Salesforce Technology Services Integrator – Tectonic has successfully delivered Salesforce in a variety of industries including Public Sector, Hospitality, Manufacturing, Read more

Read More
Salesforce Heroku

Salesforce Modernizes Heroku

Salesforce Modernizes Heroku PaaS with Kubernetes, .NET, and More Salesforce is rolling out a significant upgrade to Heroku, its popular Platform-as-a-Service (PaaS), to better align with modern developer needs. Key enhancements include support for Amazon Elastic Container Registry (ECR), AWS Global Accelerator, Elastic Kubernetes Service (EKS), AWS Graviton processors, and AWS Bedrock. The revamped platform, dubbed the Heroku Next Generation Platform, was unveiled at the AWS Re:Invent 2024 conference. While some features are in public beta, Salesforce plans to fully release additional capabilities by 2025. Catering to the Modern DeveloperHeroku’s overhaul reflects the growing dominance of Kubernetes and the increasing demand for AI-enabled applications, including autonomous ones built in Salesforce’s Agentforce. Rebecca Wettemann, founder of Valoir, notes that these trends required Salesforce to evolve Heroku to remain competitive in the PaaS market. Kubernetes, for instance, is widely used for app containerization across clouds, while AI applications are becoming a focal point for many developers. “The update broadens Heroku’s appeal to developers who rely on Kubernetes or are building AI applications,” Wettemann said. Another notable addition is support for open telemetry, a standardized approach to monitoring app performance. Developers can now stream real-time metrics such as app health and container logs into their preferred visualization tools. “This integration offers unparalleled flexibility for our customers to work with a wide ecosystem of telemetry collectors,” said Gail Frederick, Heroku’s CTO at Salesforce. Introducing .NET SupportOne of the standout updates is the inclusion of .NET, a widely used open-source framework. Developers can now use .NET languages such as C#, F#, and Visual Basic alongside Heroku’s existing support for languages like Python, Ruby, Java, Node.js, and Scala. This strategic move aligns Heroku with a broader audience, especially developers familiar with Microsoft’s ecosystem. “Heroku is all about developer choice,” said Frederick. “Adding .NET ensures we continue to serve diverse needs.” Streamlining Development and DeploymentHeroku aims to simplify app development by automating infrastructure management and lifecycle tasks. “Heroku is the platform developers turn to when they need things to work without thinking about infrastructure,” said Adam Zimman, Senior Director of Product Marketing at Heroku. The platform abstracts complex deployment steps, such as configuration, provisioning, and autoscaling, enabling developers to focus on coding and innovation. Apps are deployed as pre-packaged “slugs” that run on Heroku’s dynos, isolated Unix-based containers. Developers can scale their apps dynamically by adding or removing dynos via the platform’s management interface. Efficiency Gains for BusinessesZimman highlighted the efficiency benefits of Heroku’s approach, projecting up to a 40% boost in developer productivity and a 30% reduction in developer expenses. “By taking care of the heavy lifting, we enable businesses to deliver applications faster and more cost-effectively,” he explained. Heroku also offers over 500 pre-built add-ons and build packs, covering functions like messaging, database management, and email services. These integrations provide additional flexibility and speed up the development lifecycle. Scaling Beyond StartupsWhile Heroku is often associated with startups, Salesforce has scaled the platform to accommodate enterprise-grade applications. “Heroku now evolves with your business,” said Chris Peterson, Senior Director of Product Management at Heroku. The platform has powered over 13 million applications and 38 million managed data stores since its launch in 2007. Many Salesforce applications also run on Heroku, leveraging deep integrations to extend the Salesforce ecosystem seamlessly. Heroku’s pricing starts at $7 per month for a basic plan and scales up to $40,000 per month for enterprise-grade solutions, ensuring it meets the needs of organizations of all sizes. With these updates, Heroku continues to position itself as a go-to platform for developers, enabling faster time-to-market, reduced operational complexity, and a better overall development experience. Like Related Posts Who is Salesforce? Who is Salesforce? Here is their story in their own words. From our inception, we’ve proudly embraced the identity of Read more Salesforce Marketing Cloud Transactional Emails Salesforce Marketing Cloud Transactional Emails are immediate, automated, non-promotional messages crucial to business operations and customer satisfaction, such as order Read more Salesforce Unites Einstein Analytics with Financial CRM Salesforce has unveiled a comprehensive analytics solution tailored for wealth managers, home office professionals, and retail bankers, merging its Financial Read more AI-Driven Propensity Scores AI plays a crucial role in propensity score estimation as it can discern underlying patterns between treatments and confounding variables Read more

Read More
AI Research Agents

AI Research Agents

AI Research Agents: Transforming Knowledge Discovery by 2025 (Plus the Top 3 Free Tools) The research world is on the verge of a groundbreaking shift, driven by the evolution of AI research agents. By 2025, these agents are expected to move beyond being mere tools to becoming transformative assets for knowledge discovery, revolutionizing industries such as marketing, science, and beyond. Human researchers are inherently limited—they cannot scan 10,000 websites in an hour or analyze data at lightning speed. AI agents, however, are purpose-built for these tasks, providing efficiency and insights far beyond human capabilities. Here, we explore the anticipated impact of AI research agents and highlight three free tools redefining this space (spoiler alert: it’s not ChatGPT or Perplexity!). AI Research Agents: The New Era of Knowledge Exploration By 2030, the AI research market is projected to skyrocket from .1 billion in 2024 to .1 billion. This explosive growth represents not just advancements in AI but a fundamental transformation in how knowledge is gathered, analyzed, and applied. Unlike traditional AI systems, which require constant input and supervision, AI research agents function more like dynamic research assistants. They adapt their approach based on outcomes, handle vast quantities of data, and generate actionable insights with remarkable precision. Key Differentiator: These agents leverage advanced Retrieval Augmented Generation (RAG) technology, ensuring accuracy by pulling verified data from trusted sources. Equipped with anti-hallucination algorithms, they maintain factual integrity while citing their sources—making them indispensable for high-stakes research. The Technology Behind AI Research Agents AI research agents stand out due to their ability to: For example, an AI agent can deliver a detailed research report in 30 minutes, a task that might take a human team days. Why AI Research Agents Matter Now The timing couldn’t be more critical. The volume of data generated daily is overwhelming, and human researchers often struggle to keep up. Meanwhile, Google’s focus on Experience, Expertise, Authoritativeness, and Trustworthiness (EEAT) has heightened the demand for accurate, well-researched content. Some research teams have already reported time savings of up to 70% by integrating AI agents into their workflows. Beyond speed, these agents uncover perspectives and connections often overlooked by human researchers, adding significant value to the final output. Top 3 Free AI Research Tools 1. Stanford STORM Overview: STORM (Synthesis of Topic Outlines through Retrieval and Multi-perspective Question Asking) is an open-source system designed to generate comprehensive, Wikipedia-style articles. Learn more: Visit the STORM GitHub repository. 2. CustomGPT.ai Researcher Overview: CustomGPT.ai creates highly accurate, SEO-optimized long-form articles using deep Google research or proprietary databases. Learn more: Access the free Streamlit app for CustomGPT.ai. 3. GPT Researcher Overview: This open-source agent conducts thorough research tasks, pulling data from both web and local sources to produce customized reports. Learn more: Visit the GPT Researcher GitHub repository. The Human-AI Partnership Despite their capabilities, AI research agents are not replacements for human researchers. Instead, they act as powerful assistants, enabling researchers to focus on creative problem-solving and strategic thinking. Think of them as tireless collaborators, processing vast amounts of data while humans interpret and apply the findings to solve complex challenges. Preparing for the AI Research Revolution To harness the potential of AI research agents, researchers must adapt. Universities and organizations are already incorporating AI training into their programs to prepare the next generation of professionals. For smaller labs and institutions, these tools present a unique opportunity to level the playing field, democratizing access to high-quality research capabilities. Looking Ahead By 2025, AI research agents will likely reshape the research landscape, enabling cross-disciplinary breakthroughs and empowering researchers worldwide. From small teams to global enterprises, the benefits are immense—faster insights, deeper analysis, and unprecedented innovation. As with any transformative technology, challenges remain. But the potential to address some of humanity’s biggest problems makes this an AI revolution worth embracing. Now is the time to prepare and make the most of these groundbreaking tools. Like Related Posts Who is Salesforce? Who is Salesforce? Here is their story in their own words. From our inception, we’ve proudly embraced the identity of Read more Salesforce Marketing Cloud Transactional Emails Salesforce Marketing Cloud Transactional Emails are immediate, automated, non-promotional messages crucial to business operations and customer satisfaction, such as order Read more Salesforce Unites Einstein Analytics with Financial CRM Salesforce has unveiled a comprehensive analytics solution tailored for wealth managers, home office professionals, and retail bankers, merging its Financial Read more AI-Driven Propensity Scores AI plays a crucial role in propensity score estimation as it can discern underlying patterns between treatments and confounding variables Read more

Read More
10 Top AI Jobs in 2025

10 Top AI Jobs in 2025

10 Top AI Jobs in 2025 As we approach 2025, the demand for AI expertise is on the rise. Companies are seeking professionals with a strong background in AI, paired with practical experience. This insight explores 10 of the top AI jobs, the skills they require, and the industries that are driving AI adoption. If you are of the camp worrying about artificial intelligence replacing you, read on to see how you can leverage AI to upskill your career. AI is increasingly becoming an integral part of our lives, influencing various sectors from healthcare and finance to manufacturing, retail, and education. It is automating routine tasks, enhancing user experiences, and improving decision-making processes. AI is transitioning from data centers into everyday devices such as smartphones, IoT devices, and autonomous vehicles, becoming more efficient and safer thanks to advancements in real-time processing, lower latency, and enhanced privacy measures. The ethical use of AI is also at the forefront, emphasizing fairness, transparency, and accountability in AI models and decision-making processes. This proactive approach to ethics contrasts with past technological advancements, where ethical considerations often lagged behind. The rapid growth of AI translates to an increasing number of job opportunities. Below, we discuss the skills sought in AI specialists, the industries adopting AI at a fast pace, and a rundown of the 10 hottest AI jobs for 2025. Top AI Job Skills While many programmers are self-taught, the AI field demands a higher level of expertise. An analysis of 15,000 job postings found that 77% of AI roles require a master’s degree, while only 8% of positions are available to candidates with just a high school diploma. Most job openings call for mid-level experience, with only 12% for entry-level roles. Interestingly, while remote work is common in IT, only 11% of AI jobs offer fully remote positions. Being a successful AI developer requires more than coding skills; proficiency in core AI programming languages (like Python, Java, and R) is essential. Additional skills in communication, digital marketing strategies, effective collaboration, and analytical abilities are also critical. Moreover, a basic understanding of psychology is beneficial for simulating human behavior, and knowledge of AI security, privacy, and ethical practices is increasingly necessary. Industries Embracing AI Certain sectors are rapidly adopting AI technologies, including: 10 Top AI Jobs AI job roles are evolving quickly. Specialists are increasingly in demand over generalists, with a focus on deep knowledge in specific areas. Here are 10 promising AI job roles for 2025, along with their expected salaries based on job postings. As AI continues to evolve, these roles will play a pivotal part in shaping the future of various industries. Preparing for a career in AI requires a combination of technical skills, ethical understanding, and a willingness to adapt to new technologies. As we’ve seen with Salesforce a push for upskilling in artificial intelligence is here. Like Related Posts Who is Salesforce? Who is Salesforce? Here is their story in their own words. From our inception, we’ve proudly embraced the identity of Read more Salesforce Marketing Cloud Transactional Emails Salesforce Marketing Cloud Transactional Emails are immediate, automated, non-promotional messages crucial to business operations and customer satisfaction, such as order Read more Salesforce Unites Einstein Analytics with Financial CRM Salesforce has unveiled a comprehensive analytics solution tailored for wealth managers, home office professionals, and retail bankers, merging its Financial Read more AI-Driven Propensity Scores AI plays a crucial role in propensity score estimation as it can discern underlying patterns between treatments and confounding variables Read more

Read More
OpenAI Introduces Canvas

OpenAI Introduces Canvas

Don’t get spooked – OpenAI introduces Canvas—a fresh interface for collaborative writing and coding with ChatGPT, designed to go beyond simple conversation. Canvas opens in a separate window, enabling you and ChatGPT to work on projects side by side, creating and refining ideas in real time. This early beta provides an entirely new way of collaborating with AI—combining conversation with the ability to edit and enhance content together. Built on GPT-4o, Canvas can be selected in the model picker during the beta phase. Starting today, we’re rolling it out to ChatGPT Plus and Team users globally, with Enterprise and Education users gaining access next week. Once out of beta, Canvas will be available to all ChatGPT Free users. Enhancing Collaboration with ChatGPT While ChatGPT’s chat interface works well for many tasks, projects requiring editing and iteration benefit from more. Canvas provides a workspace designed for such needs. Here, ChatGPT can better interpret your objectives, offering inline feedback and suggestions across entire projects—similar to a copy editor or code reviewer. You control every aspect in Canvas, from direct editing to leveraging shortcuts like adjusting text length, debugging code, or quickly refining writing. You can also revert to previous versions with Canvas’s back button. OpenAI Introduces Canvas Canvas opens automatically when ChatGPT detects an ideal scenario, or you can prompt it by typing “use Canvas” in your request to begin working collaboratively on an existing project. Writing Shortcuts Include: Coding in Canvas Canvas makes coding revisions more transparent, streamlining the iterative coding process. Track ChatGPT’s edits more clearly and take advantage of features that make debugging and revising code simpler. OpenAI Introduces Canvas to a world of new possibilities for truly developing and working with artificial intelligence. Coding Shortcuts Include: Training the Model to Collaborate GPT-4o has been optimized to act as a collaborative partner, understanding when to open a Canvas, make targeted edits, or fully rewrite content. Our team implemented core behaviors to support a seamless experience, including: These improvements are backed by over 20 internal automated evaluations and refined with synthetic data generation techniques, allowing us to enhance response quality and interaction without relying on human-generated data. Key Challenges as OpenAI Introduces Canvas A core challenge was determining when to trigger Canvas. We trained GPT-4o to recognize prompts like “Write a blog post about the history of coffee beans” while avoiding over-triggering for simple Q&A requests. For writing tasks, we reached an 83% accuracy in correct Canvas triggers, and a 94% accuracy in coding tasks compared to baseline models. Fine-tuning continues to ensure targeted edits are favored over full rewrites when needed. Finally, improving comment generation required iterative adjustments and human evaluations, with the integrated Canvas model now outperforming baseline GPT-4o in accuracy by 30% and quality by 16%. What’s Next Canvas is the first major update to ChatGPT’s visual interface since launch, with more enhancements planned to make AI more versatile and accessible. Canvas is also integrated with Salesforce. Like Related Posts Who is Salesforce? Who is Salesforce? Here is their story in their own words. From our inception, we’ve proudly embraced the identity of Read more Salesforce Unites Einstein Analytics with Financial CRM Salesforce has unveiled a comprehensive analytics solution tailored for wealth managers, home office professionals, and retail bankers, merging its Financial Read more AI-Driven Propensity Scores AI plays a crucial role in propensity score estimation as it can discern underlying patterns between treatments and confounding variables Read more Tectonic’s Successful Salesforce Track Record Salesforce Technology Services Integrator – Tectonic has successfully delivered Salesforce in a variety of industries including Public Sector, Hospitality, Manufacturing, Read more

Read More
Evaluating RAG With Needle in Haystack Test

Agentic RAG

Agentic RAG: The Next Evolution of AI-Powered Knowledge Retrieval From RAG to Agentic RAG: A Paradigm Shift in AI Applications While Retrieval-Augmented Generation (RAG) dominated AI advancements in 2023, agentic workflows are now driving the next wave of innovation in 2024. By integrating AI agents into RAG pipelines, developers can build more powerful, adaptive, and intelligent LLM-powered applications. This article explores:✔ What is Agentic RAG?✔ How it works (single-agent vs. multi-agent architectures)✔ Implementation methods (function calling vs. agent frameworks)✔ Enterprise adoption & real-world use cases✔ Benefits & limitations Understanding the Foundations: RAG & AI Agents What is Retrieval-Augmented Generation (RAG)? RAG enhances LLMs by retrieving external knowledge before generating responses, reducing hallucinations and improving accuracy. Traditional (Vanilla) RAG Pipeline: Limitations of Vanilla RAG: ❌ Single knowledge source (no dynamic tool integration).❌ One-shot retrieval (no iterative refinement).❌ No reasoning over retrieved data quality. What Are AI Agents? AI agents are autonomous LLM-driven systems with: The ReAct Framework (Reason + Act) What is Agentic RAG? Agentic RAG embeds AI agents into RAG pipelines, enabling:✅ Multi-source retrieval (databases, APIs, web search).✅ Dynamic query refinement (self-correcting searches).✅ Validation of results (quality checks before generation). How Agentic RAG Works Instead of a static retrieval step, an AI agent orchestrates: Agentic RAG Architectures 1. Single-Agent RAG (Router) 2. Multi-Agent RAG (Orchestrated Workflow) Implementing Agentic RAG Option 1: LLMs with Function Calling Example: Function Calling with Ollama python Copy def ollama_generation_with_tools(query, tools_schema): # LLM decides tool use → executes → refines response … Option 2: Agent Frameworks Why Enterprises Are Adopting Agentic RAG Real-World Use Cases 🔹 Replit’s AI Dev Agent – Helps debug & write code.🔹 Microsoft Copilots – Assist users in real-time tasks.🔹 Customer Support Bots – Multi-step query resolution. Benefits ✔ Higher accuracy (validated retrievals).✔ Dynamic tool integration (APIs, web, databases).✔ Autonomous task handling (reducing manual work). Limitations ⚠ Added latency (LLM reasoning steps).⚠ Unpredictability (agents may fail without safeguards).⚠ Complex debugging (multi-agent coordination). Conclusion: The Future of Agentic RAG Agentic RAG represents a leap beyond traditional RAG, enabling:🚀 Smarter, self-correcting retrieval.🤖 Seamless multi-tool workflows.🔍 Enterprise-grade reliability. As frameworks mature, expect AI agents to become the backbone of next-gen LLM applications—transforming industries from customer service to software development. Ready to build your own Agentic RAG system? Explore frameworks like LangChain, CrewAI, or OpenAI’s function calling to get started. Like Related Posts Who is Salesforce? Who is Salesforce? Here is their story in their own words. From our inception, we’ve proudly embraced the identity of Read more Salesforce Unites Einstein Analytics with Financial CRM Salesforce has unveiled a comprehensive analytics solution tailored for wealth managers, home office professionals, and retail bankers, merging its Financial Read more AI-Driven Propensity Scores AI plays a crucial role in propensity score estimation as it can discern underlying patterns between treatments and confounding variables Read more Tectonic’s Successful Salesforce Track Record Salesforce Technology Services Integrator – Tectonic has successfully delivered Salesforce in a variety of industries including Public Sector, Hospitality, Manufacturing, Read more

Read More
AI Assistants Using LangGraph

AI Assistants Using LangGraph

In the evolving world of AI, retrieval-augmented generation (RAG) systems have become standard for handling straightforward queries and generating contextually relevant responses. However, as demand grows for more sophisticated AI applications, there is a need for systems that move beyond simple retrieval tasks. Enter AI agents—autonomous entities capable of executing complex, multi-step processes, maintaining state across interactions, and dynamically adapting to new information. LangGraph, a powerful extension of the LangChain library, is designed to help developers build these advanced AI agents, enabling stateful, multi-actor applications with cyclic computation capabilities. AI Assistants Using LangGraph. In this insight, we’ll explore how LangGraph revolutionizes AI development and provide a step-by-step guide to building your own AI agent using an example that computes energy savings for solar panels. This example will demonstrate how LangGraph’s unique features enable the creation of intelligent, adaptable, and practical AI systems. What is LangGraph? LangGraph is an advanced library built on top of LangChain, designed to extend Large Language Model (LLM) applications by introducing cyclic computational capabilities. While LangChain allows for the creation of Directed Acyclic Graphs (DAGs) for linear workflows, LangGraph enhances this by enabling the addition of cycles—essential for developing agent-like behaviors. These cycles allow LLMs to continuously loop through processes, making decisions dynamically based on evolving inputs. LangGraph: Nodes, States, and Edges The core of LangGraph lies in its stateful graph structure: LangGraph redefines AI development by managing the graph structure, state, and coordination, allowing for the creation of sophisticated, multi-actor applications. With automatic state management and precise agent coordination, LangGraph facilitates innovative workflows while minimizing technical complexity. Its flexibility enables the development of high-performance applications, and its scalability ensures robust and reliable systems, even at the enterprise level. Step-by-step Guide Now that we understand LangGraph’s capabilities, let’s dive into a practical example. We’ll build an AI agent that calculates potential energy savings for solar panels based on user input. This agent can function as a lead generation tool on a solar panel seller’s website, providing personalized savings estimates based on key data like monthly electricity costs. This example highlights how LangGraph can automate complex tasks and deliver business value. Step 1: Import Necessary Libraries We start by importing the essential Python libraries and modules for the project. pythonCopy codefrom langchain_core.tools import tool from langchain_community.tools.tavily_search import TavilySearchResults from langchain_core.prompts import ChatPromptTemplate from langchain_core.runnables import Runnable from langchain_aws import ChatBedrock import boto3 from typing import Annotated from typing_extensions import TypedDict from langgraph.graph.message import AnyMessage, add_messages from langchain_core.messages import ToolMessage from langchain_core.runnables import RunnableLambda from langgraph.prebuilt import ToolNode Step 2: Define the Tool for Calculating Solar Savings Next, we define a tool to calculate potential energy savings based on the user’s monthly electricity cost. pythonCopy code@tool def compute_savings(monthly_cost: float) -> float: “”” Tool to compute the potential savings when switching to solar energy based on the user’s monthly electricity cost. Args: monthly_cost (float): The user’s current monthly electricity cost. Returns: dict: A dictionary containing: – ‘number_of_panels’: The estimated number of solar panels required. – ‘installation_cost’: The estimated installation cost. – ‘net_savings_10_years’: The net savings over 10 years after installation costs. “”” def calculate_solar_savings(monthly_cost): cost_per_kWh = 0.28 cost_per_watt = 1.50 sunlight_hours_per_day = 3.5 panel_wattage = 350 system_lifetime_years = 10 monthly_consumption_kWh = monthly_cost / cost_per_kWh daily_energy_production = monthly_consumption_kWh / 30 system_size_kW = daily_energy_production / sunlight_hours_per_day number_of_panels = system_size_kW * 1000 / panel_wattage installation_cost = system_size_kW * 1000 * cost_per_watt annual_savings = monthly_cost * 12 total_savings_10_years = annual_savings * system_lifetime_years net_savings = total_savings_10_years – installation_cost return { “number_of_panels”: round(number_of_panels), “installation_cost”: round(installation_cost, 2), “net_savings_10_years”: round(net_savings, 2) } return calculate_solar_savings(monthly_cost) Step 3: Set Up State Management and Error Handling We define utilities to manage state and handle errors during tool execution. pythonCopy codedef handle_tool_error(state) -> dict: error = state.get(“error”) tool_calls = state[“messages”][-1].tool_calls return { “messages”: [ ToolMessage( content=f”Error: {repr(error)}n please fix your mistakes.”, tool_call_id=tc[“id”], ) for tc in tool_calls ] } def create_tool_node_with_fallback(tools: list) -> dict: return ToolNode(tools).with_fallbacks( [RunnableLambda(handle_tool_error)], exception_key=”error” ) Step 4: Define the State and Assistant Class We create the state management class and the assistant responsible for interacting with users. pythonCopy codeclass State(TypedDict): messages: Annotated[list[AnyMessage], add_messages] class Assistant: def __init__(self, runnable: Runnable): self.runnable = runnable def __call__(self, state: State): while True: result = self.runnable.invoke(state) if not result.tool_calls and ( not result.content or isinstance(result.content, list) and not result.content[0].get(“text”) ): messages = state[“messages”] + [(“user”, “Respond with a real output.”)] state = {**state, “messages”: messages} else: break return {“messages”: result} Step 5: Set Up the LLM with AWS Bedrock We configure AWS Bedrock to enable advanced LLM capabilities. pythonCopy codedef get_bedrock_client(region): return boto3.client(“bedrock-runtime”, region_name=region) def create_bedrock_llm(client): return ChatBedrock(model_id=’anthropic.claude-3-sonnet-20240229-v1:0′, client=client, model_kwargs={‘temperature’: 0}, region_name=’us-east-1′) llm = create_bedrock_llm(get_bedrock_client(region=’us-east-1′)) Step 6: Define the Assistant’s Workflow We create a template and bind the tools to the assistant’s workflow. pythonCopy codeprimary_assistant_prompt = ChatPromptTemplate.from_messages( [ ( “system”, ”’You are a helpful customer support assistant for Solar Panels Belgium. Get the following information from the user: – monthly electricity cost Ask for clarification if necessary. ”’, ), (“placeholder”, “{messages}”), ] ) part_1_tools = [compute_savings] part_1_assistant_runnable = primary_assistant_prompt | llm.bind_tools(part_1_tools) Step 7: Build the Graph Structure We define nodes and edges for managing the AI assistant’s conversation flow. pythonCopy codebuilder = StateGraph(State) builder.add_node(“assistant”, Assistant(part_1_assistant_runnable)) builder.add_node(“tools”, create_tool_node_with_fallback(part_1_tools)) builder.add_edge(START, “assistant”) builder.add_conditional_edges(“assistant”, tools_condition) builder.add_edge(“tools”, “assistant”) memory = MemorySaver() graph = builder.compile(checkpointer=memory) Step 8: Running the Assistant The assistant can now be run through its graph structure to interact with users. python import uuidtutorial_questions = [ ‘hey’, ‘can you calculate my energy saving’, “my montly cost is $100, what will I save”]thread_id = str(uuid.uuid4())config = {“configurable”: {“thread_id”: thread_id}}_printed = set()for question in tutorial_questions: events = graph.stream({“messages”: (“user”, question)}, config, stream_mode=”values”) for event in events: _print_event(event, _printed) Conclusion By following these steps, you can create AI Assistants Using LangGraph to calculate solar panel savings based on user input. This tutorial demonstrates how LangGraph empowers developers to create intelligent, adaptable systems capable of handling complex tasks efficiently. Whether your application is in customer support, energy management, or other domains, LangGraph provides the Like Related Posts Who is Salesforce? Who is Salesforce? Here is their story in

Read More
gettectonic.com