Navigation
PromptSpark Navigation

Pick Spark Variant

Wichita Wisdom 3.5

Wichita Wisdom

Created: 4/12/2024 Start Chat
ICT Sarcasm 3.5

ICT Sarcasm delivers witty and sarcastic commentary, adding a playful tone to the interaction.

Created: 4/12/2024 Start Chat
Wichita Wisdom 4o

Wichita Wisdom 4o

Created: 4/16/2024 Start Chat
ICT Sarcasm 4o

ICT Sarcasm 4o

Created: 4/17/2024 Start Chat
Wichita Pirate 4o

Wichita Pirate 4o

Created: 4/20/2024 Start Chat
Glam Guru 4o

Glam Guru 4o

Created: 4/21/2024 Start Chat
Corporate Couture 4o

Corporate Couture 4o

Created: 4/21/2024 Start Chat
MOM Recipe

Mom Recipe

Created: 4/21/2024 Start Chat
IVR Response

IVR Response

Created: 4/21/2024 Start Chat
CRUD Code Partner 4o

Code Partner helps Create Your CRUD

Created: 4/25/2024 Start Chat
VB to C# GPT

A GPT to convert vb code to C#

Created: 4/26/2024 Start Chat
C# Challenge Assistant 4o

C# Challenge Assistant to fix your most vexing issues

Created: 4/26/2024 Start Chat
MarkHazleton.com

MarkHazleton.com PUG Generator

Created: 5/18/2024 Start Chat
Boho Chic Whisperer 4o

Boho Chic Whisperer

Created: 5/18/2024 Start Chat
Alex English Tutor

Alex, the 8th Grade English Tutor

Created: 5/29/2024 Start Chat
Alex 2.0

An updated more Fun Alex

Created: 5/28/2024 Start Chat
Alex 3.0

Alex 3.0

Created: 5/28/2024 Start Chat
Residential Property Listings

A professional real estate assistant

Created: 5/28/2024 Start Chat
Luxury Property Listings

Luxury Property Listings Assistant

Created: 5/28/2024 Start Chat
Wine Dinner Planner

Wine Dinner Planner

Created: 6/2/2024 Start Chat
Succession Planner

An assistant to help build a small business succession plan

Created: 6/5/2024 Start Chat
Keller Texas Helpful

A helpful Keller, Texas assistant

Created: 6/20/2024 Start Chat
Keller Y'all

The Keller Texan

Created: 6/20/2024 Start Chat
Timeless Elegance Expert

an AI fashion advisor focused on providing users with fashion advice inspired by classic, timeless elegance

Created: 6/20/2024 Start Chat
AzureDevOpsWiki

Help Create Azure DevOps Wiki

Created: 8/2/2024 Start Chat
Joke Explainer

A Joke Explainer

Created: 8/30/2024 Start Chat
Art Historian

Art Historian

Created: 8/30/2024 Start Chat
GitHub ReadMe

Create a GitHub Readme.md

Created: 9/30/2024 Start Chat
PromptSpark.Chat Workflow

Generate a Workflow for PromptSpark.Chat

Created: 11/8/2024 Start Chat
Law And Order Classic Cast

Law And Order Classic Cast

Created: 12/23/2024 Start Chat
Barley

AI Bartender named Barley

Created: 12/24/2024 Start Chat
JSON Documenter

JSON Documenter

Created: 1/24/2025 Start Chat
Deserted Island Chat

Deserted Island Chat, an interactive storytelling assistant.

Created: 2/3/2025 Start Chat
Obituary Writer

Obituary Writer

Created: 3/11/2025 Start Chat
ShareSmallBizChat

ShareSmallBizChat

Created: 3/15/2025 Start Chat

Pick Spark Variant - Enhance Your AI Interaction

Discover and choose from a range of Spark Variants designed to optimize AI interactions, boost productivity, and explore creative solutions.

Features of PromptSpark

  • Core Sparks: Define standard AI behaviors for consistent performance.
  • Spark Variants: Explore and test different prompt implementations.
  • Spark Inputs: Evaluate and refine responses with various input configurations.
  • Performance Tracking: Monitor accuracy, relevance, and efficiency of prompts.

ChatCompletions Functionality

The ChatCompletions feature enables interactive conversations with specific PromptSpark Variants. Users can tailor AI responses by selecting the appropriate variant, which influences the behavior and tone of the interaction.

Why Choose PromptSpark?

PromptSpark provides a streamlined approach to managing and optimizing AI prompts, making it an essential tool for developers and businesses seeking to enhance their AI-driven applications. By leveraging Core Sparks, Variants, and Inputs, users can refine their interactions with large language models, ensuring more accurate and contextually appropriate responses.

What is Microsoft SignalR?

Microsoft SignalR is an open-source library that simplifies the process of adding real-time web functionality to applications. Real-time web functionality is the ability of a server to push content updates to clients instantly, as they happen. SignalR supports WebSockets, server-sent events, and long polling, enabling seamless client-server communication.

  • Real-Time Communication: SignalR allows bi-directional communication between server and client.
  • Transport Protocols: Automatically selects the best transport available, falling back through WebSockets, server-sent events, and long polling.
  • Hub API: Provides a simple API to call methods on clients from the server and vice versa.
  • Security: Integrates with ASP.NET Core authentication and authorization, securing communication channels.

Pros and Cons of Using SignalR

Pros

  • Real-Time Capability: Enables instant updates without client polling.
  • Scalability: Can be scaled easily with Azure SignalR Service.
  • Flexibility: Supports various transport protocols, providing robust fallback mechanisms.
  • Easy Integration: Integrates well with ASP.NET Core, simplifying real-time features in web applications.

Cons

  • Resource Intensive: High frequency of real-time updates can be resource-intensive for servers.
  • Complex Scaling: Self-hosted SignalR scaling requires careful planning and infrastructure.
  • Browser Compatibility: Not all transport protocols are supported across all browsers.
  • Latency: Potential latency issues when using fallback transports like long polling.

Scaling SignalR with Azure SignalR Service

Azure SignalR Service is a fully managed Azure service that simplifies the process of adding real-time web functionality to applications using SignalR. It offloads the responsibility of scaling SignalR connections, managing performance, and maintaining the service infrastructure.

  • Automatic Scaling: Azure SignalR Service automatically scales to handle a large number of connections, making it suitable for large-scale applications.
  • Performance Optimization: Offloads connection handling from your server, improving overall application performance.
  • Security and Compliance: Built-in support for security and compliance, integrating seamlessly with other Azure services.
  • Easy Integration: Minimal configuration needed; simply switch the connection from your local SignalR setup to Azure SignalR Service.

To use Azure SignalR Service, you just need to configure your ASP.NET Core application to connect to Azure SignalR Service instead of self-hosting SignalR.

Example Configuration for self-hosting:

        
// ========================
// SignalR Configuration
// ========================
// Add CORS configuration if needed for SignalR
builder.Services.AddCors(options =>
{
    options.AddPolicy("AllowAllOrigins", builder =>
    {
        builder.AllowAnyHeader()
               .AllowAnyMethod()
               .SetIsOriginAllowed(_ => true)  // Allows all origins
               .AllowCredentials();            // Necessary for SignalR
    });
});

// SignalR Configuration
builder.Services.AddSignalR().AddJsonProtocol(options =>
{
    // Configuring JSON serializer options if needed
    options.PayloadSerializerOptions.PropertyNamingPolicy = null;
});

// ========================
// Endpoint Configuration
// ========================
app.MapHub("/chatHub");
app.MapHub("/crawlHub");


Real-Time Chat with SignalR

SignalR enables real-time communication between the browser and server, facilitating interactive conversations with OpenAI through ChatCompletions. Below is a basic setup for SignalR and its integration with OpenAI API calls:

                
// ChatHub.cs
public class ChatHub : Hub
{
    public async Task SendMessage(string user, string message)
    {
        await Clients.All.SendAsync("ReceiveMessage", user, message);
    }
}

// Startup.cs
public void ConfigureServices(IServiceCollection services)
{
    services.AddSignalR();
}

public void Configure(IApplicationBuilder app)
{
    app.UseRouting();
    app.UseEndpoints(endpoints => { endpoints.MapHub<ChatHub>("/chatHub"); });
}

Client-Side Integration

On the client side, JavaScript connects to the SignalR hub and listens for messages from the server:

                
// Client-side JavaScript
const connection = new signalR.HubConnectionBuilder().withUrl("/chatHub").build();
connection.start().catch(err => console.error(err.toString()));
connection.on("ReceiveMessage", function (user, message) {
    const msg = `${user}: ${message}`;
    document.getElementById("messagesList").appendChild(document.createElement("li")).textContent = msg;
});