Skip to content

Instantly share code, notes, and snippets.

View revanth0212's full-sized avatar

Revanth Kumar Annavarapu revanth0212

View GitHub Profile

Evaluating Applications in the AI World

1. Traditional Evaluation (The "Old Way").

Technique Goal Key Characteristic
Unit Testing Verify individual functions/modules work correctly. Pass/Fail is binary (10 + 5 = 15).
Integration Testing Ensure components work together as expected (APIs, databases). Checks for communication failures and data consistency.
Stress/Load Testing Determine maximum performance under heavy usage. Focuses on speed, stability, and resource limits.

System Prompt for an Adobe Commerce Extension Generation Agent

Part 1: The System Prompt for the Adobe Commerce Extension Agent

This section presents the complete, optimized system prompt designed to be used with an advanced AI coding agent. The prompt is architected in a layered fashion to provide the AI with a comprehensive and structured understanding of its role, knowledge base, and operational procedures for generating Adobe Commerce extensions using Adobe Developer App Builder.


SYSTEM PROMPT START

Demystifying the Modern AI Tech Stack: A Developer's Guide

Objective: To provide readers with a foundational understanding of the concepts, components, and tools that constitute modern AI applications, from simple generative models to complex autonomous agents. This document can serve as a reference guide for building the next generation of AI-powered products.

Section 1: The Core Engine - Understanding Large Language Models (LLMs)

This section introduces the fundamental building block of the current AI revolution: the Large Language Model (LLM). Almost every modern AI application starts here.

  1. What are LLMs?
  • Large Language Models are advanced neural networks, most commonly based on the Transformer architecture, trained on massive amounts of text and code. They are not sentient, nor do they "understand" in a human sense. Instead, they are incredibly sophisticated pattern-recognition engines.
{
"meshConfig": {
"responseConfig": {
"CORS": {
"credentials": true,
"exposedHeaders": ["Content-Range", "X-Content-Range"],
"maxAge": 60480,
"methods": ["GET", "POST"],
"origin": "*"
},
[
{
"name": "Vitalia Top",
"discount": 12
},
{
"name": "Jillian Top",
"discount": 15
},
{
@revanth0212
revanth0212 / mesh-build-webpack.config.js
Created October 27, 2022 15:38
Webpack config to build mesh config artifacts into single JS file
const path = require("path");
const webpack = require("webpack");
const entry = "./src/actions/mesh/handler.js";
module.exports = {
entry,
target: "node",
output: {
library: {
@revanth0212
revanth0212 / pwaCacheClean.js
Created August 10, 2021 22:30
While using PWA Studio's scaffolding command if you run into any errors or if you notice the command using old packages, run this file to clear your cache and try again.
const fs = require("fs");
const os = require("os");
const { promisify } = require("util");
const exec = promisify(require("child_process").exec);
const temptdir = os.tmpdir();
if (fs.existsSync(`${temptdir}/@magento`)) {
fs.rmdirSync(`${temptdir}/@magento`, { recursive: true });
@revanth0212
revanth0212 / getPackagesWithInstallScripts.js
Created March 31, 2021 01:21
Get a list of all the packages that have pre and post install scripts to access the extent of damage we can cause by using --ignore-scripts flag while running npm.
// lets check which packages have pre and post install scripts
const fs = require('fs');
const path = require('path');
const verifyNodeModulesExists = folderPath => {
return fs.existsSync(folderPath);
};
const getPackageJsonPath = (folderPath, packageName) => {

Zetlen has made changes that are not publised yet that make extensibility a piece of cake.

It starts with adding a new target in the declare file.

//We are adding an extension point in the venia UI declare file which an extension developer can use to add JSX to the buttons section of the product details page.

buttonActions: new targets.types.AsyncSeriesWaterfall(['actions'])
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.