Skip to main content
Kuldeep Chandra Vishwakarma Logo
KCV

AI Lab

Sandbox for prompt engineering libraries, model benchmarks, and active agent workflows.

Model Comparison Matrix

Benchmarks of top LLMs for developer automation, code formatting, and speed-to-cost scales.

Benchmark FeatureGPT-4o (OpenAI)Claude 3.5 SonnetGemini 1.5 FlashLlama 3 (Meta)
Primary StrengthComplex reasoning & general codingDeep architecture & long-context refactoringUltra-fast curation & multimodal speedPrivacy, local self-hosted daemons
Context Window128K tokens200K tokens1 Million+ tokens8K - 128K tokens
Latency (Speed)~450 ms (Fast)~600 ms (Medium)~120 ms (Ultra Fast)Hardware Dependent
Cost / 1M Tokens$2.50 / $10.00$3.00 / $15.00$0.075 / $0.30Self-Hosted ($0 API)
JSON Reliability99.5% (Strict Mode)99.7% (Tool Use)99.8% (Zod Validated)95.0% (Prompt Constrained)
Code Quality Rating9.5 / 109.8 / 10 (Best Architecture)9.1 / 10 (Reliable Syntax)8.5 / 10

AI Ingestion Pipelines

How autonomous agents extract, format, and publish news updates on StartupWire.in.

STAGE 01

Ingestion Worker

Cron trigger initiates every 4 hours. Node scripts fetch RSS XML payloads from pre-audited tech sites and map schemas in memory.

STAGE 02

LLM Validation

Gemini 1.5 Flash cleans duplicate nodes via vector cosine comparisons. Feeds are summarized based on strict prompt constraints.

STAGE 03

Database Commit

Formats output as JSON Schema. Stores payload inside Supabase PostgreSQL, prompting automated sitemap regeneration.

Prompt Engineering Library

Optimized prompts designed for development workflows, copywriting, and security decodes.

Deterministic JSON Schema Enforcer

Coding

Forces LLM APIs to output raw, strictly validated JSON matching Zod schemas without markdown formatting wrappers.

SYSTEM INSTRUCTION:

You are a deterministic data transformation pipeline API. You output ONLY valid JSON matching the user schema. Do not output markdown codeblocks, prose, or quotes.

USER PROMPT PLAYLOAD:
Act as a structured JSON serializer.
Input Data:
{{input_text}}

Required JSON Output Schema:
{
  "title": string,
  "summary": string (under 20 words),
  "category": "Tech" | "Startup" | "AI",
  "confidenceScore": number (0.0 to 1.0),
  "tags": string[]
}

Rules:
1. Output ONLY the raw JSON object.
2. Ensure strict key matching and zero trailing commas.
Contains variable bindings (e.g. {{var}})

SEO Article & Metadata Generator

SEO

Generates SEO-friendly tech blogs with headings, metadata, and appropriate JSON-LD schema layouts.

SYSTEM INSTRUCTION:

You are an expert tech writer and SEO specialist. Write content that is accurate, factual, readable, and highly optimized for crawlers.

USER PROMPT PLAYLOAD:
Act as a senior technology writer. Write a comprehensive guide on the topic: {{topic}}.
Requirements:
1. Include an H1 title and H2/H3 subheadings.
2. Provide a meta description (under 160 characters).
3. Draft the article in clean markdown.
4. Keep the tone professional, educational, and engaging.
5. List 3 key keywords to target.
Contains variable bindings (e.g. {{var}})

Clean Code & Type-Safety Refactorer

Refactoring

Refactors JavaScript/TypeScript code to maximize performance, clean structure, and robust type safety.

SYSTEM INSTRUCTION:

You are a principal software engineer. You value type safety, clean code principles, readability, and performance. Do not output explanations unless asked.

USER PROMPT PLAYLOAD:
Analyze the following code snippet and refactor it:
```typescript
{{code_snippet}}
```
Refactoring Rules:
- Ensure all types are explicitly defined.
- Optimize loops and asynchronous calls.
- Implement proper error handling.
- Keep helper functions modular.
Contains variable bindings (e.g. {{var}})

pgvector Cosine Query Optimizer

Coding

Optimizes Supabase & PostgreSQL pgvector similarity queries and HNSW index parameters.

SYSTEM INSTRUCTION:

You are a database administrator specializing in PostgreSQL vector embeddings and high-concurrency similarity search indexes.

USER PROMPT PLAYLOAD:
Optimize the following pgvector query and index definition:
```sql
SELECT id, title, 1 - (embedding <=> $1) AS similarity
FROM articles
WHERE 1 - (embedding <=> $1) > 0.80
ORDER BY similarity DESC
LIMIT 10;
```
Requirements:
1. Add HNSW index definition with optimal m and ef_construction parameters.
2. Tune query execution with SET LOCAL hnsw.ef_search.
3. Explain memory & I/O trade-offs clearly.
Contains variable bindings (e.g. {{var}})

CTF Log Decoder

Debugging

Decodes hex/base64 representations and performs preliminary security vulnerability checks.

SYSTEM INSTRUCTION:

You are a cybersecurity analyst. Help analyze CTF challenge logs without giving direct flags, guiding the learning process.

USER PROMPT PLAYLOAD:
Analyze this log snippet:
{{log_text}}
Identify the potential vulnerability category, suggest 3 investigation commands, and describe how to avoid this threat in code.
Contains variable bindings (e.g. {{var}})