Bootstrap knowledge of LLMs ASAP. With a bias/focus to GPT.
Avoid being a link dump. Try to provide only valuable well tuned information.
Neural network links before starting with transformers.
@echo off | |
:: ------------------------------------------------------------ | |
:: create a solution with a razor pages project and a class library | |
:: add Serilog packages and EF Core | |
:: add virtualization folders | |
:: add a readme.md file | |
:: NOTE that the Nuget packages are the latest versions as of 07-2023 | |
:: ------------------------------------------------------------ | |
md RazorSolution |
public class Program | |
{ | |
public static void Main(string[] args) | |
{ | |
var builder = WebApplication.CreateBuilder(args); | |
SetupLogging.Development(); | |
builder.Services.AddRazorPages(op => | |
{ |
*****OBJECTIVE***** | |
Develop World Peace and Harmony that improves the Quality of life for humans, animals and our planet | |
Initial task: Develop a task list | |
*****TASK LIST***** | |
1: Develop a task list | |
*****NEXT TASK***** | |
1: Develop a task list | |
*****OBJECTIVE***** | |
Develop World Peace and Harmony that improves the Quality of life for humans, animals and our planet |
from langchain.llms import Anthropic | |
from langchain.agents import load_tools, initialize_agent | |
from langchain.tools import AIPluginTool | |
PREFIX = """\n\nHuman: Answer the following questions as best you can. You have access to the following tools:""" | |
SUFFIX = """Begin! | |
Question: {input} | |
\n\nAssistant: | |
Thought:{agent_scratchpad}""" |
namespace EsBankAccount.Account; | |
using Events = IReadOnlyCollection<IEvent>; | |
public record Transaction(decimal Amount, DateTime Date); | |
// events | |
public interface IEvent { } // used to mimic a discriminated union | |
public record Deposited(Transaction Transaction) : IEvent; | |
public record Withdrawn(Transaction Transaction) : IEvent; |
using System; | |
using System.Threading.Tasks; | |
namespace System.Collections.Concurrent | |
{ | |
public static class ConcurrentDictionaryExtensions | |
{ | |
/// <summary> | |
/// Provides an alternative to <see cref="ConcurrentDictionary{TKey, TValue}.GetOrAdd(TKey, Func{TKey, TValue})"/> that disposes values that implement <see cref="IDisposable"/>. | |
/// </summary> |
The following are examples of various features.
#The display name of the application. | |
$appName = "BlazorTest1" | |
#Space-separated URIs to which Azure AD will redirect in response to an OAuth 2.0 request. The value does not need to be a physical endpoint, but must be a valid URI. | |
$replyUrl = "https://localhost:44324/authentication/login-callback" | |
#Get the appId of Microsoft Graph | |
$graphId = az ad sp list --query "[?appDisplayName=='Microsoft Graph'].appId | [0]" --all | |
#Get the id of the User.Read permission in the Graph | |
$userRead = az ad sp show --id $graphId --query "oauth2Permissions[?value=='User.Read'].id | [0]" |
Authentication means determining who a particular user is. Authorization means applying rules about what they can do. Blazor contains features for handling both aspects of this.
It worth remembering how the overall goals differ between server-side Blazor and client-side Blazor: