Last active
July 29, 2024 10:55
-
-
Save dfinke/ca2b678a46923166dafe29cb2a6e6bc6 to your computer and use it in GitHub Desktop.
The difference between building LLM-powered applications in summer 2024 vs summer 2023?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
This PowerShell script is powered by my PSAI and PSAIAgent modules. | |
PSAI - Is a port of the OpenAI Python SDK | |
PSAIAgent - Is a PowerShell module that allows you turn an OpenAI LLM into an AI Assistant with memory and tools | |
Register-Tool - Takes PowerShell functions signatures and creates the JSON to be used by OpenAI | |
New-Agent - Creates an AI Agent that can be used to interact with OpenAI | |
Get-AgentResponse - Takes the agent and prompt, calls the OpenAI model, runs the functions if needed and returns the response | |
#> | |
$tools = $( | |
Register-Tool Get-GHMetrics | |
Register-Tool Invoke-WebSearch | |
) | |
$prompt = @" | |
Ragas | |
LangFuse | |
LangSmith-sdk | |
LangChain4j | |
Spring AI | |
DSPy | |
Find the github repos for each and the metrics, include date created in a table | |
In the intro, add a brief sentence describing each project | |
"@ | |
$agent = New-Agent -ShowToolCalls -Tools $tools -LLM (New-OpenAIChat 'gpt-4o') # Create a new agent and add the tools for capabilities | |
$agent | Get-AgentResponse $prompt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The prompt was inspired by this post from Marie-Alice BleteMarie-Alice Blete:
https://www.linkedin.com/posts/mblete_whats-the-big-difference-between-building-activity-7216426131741126656-eDXf?utm_source=share&utm_medium=member_desktop
Here is a brief description of each project along with their GitHub repository information and metrics in a table:
Project Descriptions
Project Metrics
This table provides an overview of the key metrics for each project, highlighting their popularity, activity, and contributions.