This folder contains a number of different examples to help you get up and running with GenSX.
Each example has a README with detailed instructions on how to run the example. Generally, the steps will look something like this:
# Navigate to the example directory
cd examples/<example-name>
# Install dependencies
pnpm install
# Run the example
pnpm run devMake sure to check what environment variables are required for each example.
| Example | Description |
|---|---|
| 🔄 Reflection | Shows how to use a self-reflection pattern with GenSX |
| 🦾 Anthropic Examples | Examples showing how to use @gensx/anthropic |
| 🧠 OpenAI Examples | Examples showing how to use @gensx/openai |
| 🌊 Vercel AI SDK Examples | Examples showing how to use @gensx/vercel-ai |
| Example | Description |
|---|---|
| 🔍 Hacker News Analyzer | Analyzes HN posts and generates summaries and trends using Paul Graham's writing style |
| ✍️ Blog Writer | Generates blogs through an end-to-end workflow including topic research and content creation |
| 🔬 Deep Research | Generates a report from a prompt after researching and summarizing a list of research papers |
| 💻 Computer Use | Demonstrates how to use the OpenAI computer use tool with GenSX |
| 🗄️ Text to SQL | Shows how to use database storage to translate natural language to SQL queries |
| 🔎 RAG | Demonstrates retrieval augmented generation using vector search storage |
| 💬 Chat Memory | Shows how to build a chat application with persistent chat history using blob storage |