Skip to content

Instantly share code, notes, and snippets.

@homanp
Last active February 23, 2024 07:52
Show Gist options
  • Save homanp/0db61e84fe307f7afbbd168bce63ee57 to your computer and use it in GitHub Desktop.
Save homanp/0db61e84fe307f7afbbd168bce63ee57 to your computer and use it in GitHub Desktop.
SAML examples
# Simple RAG
workflows:
- superagent:
llm: gpt-4-1106-preview
data:
urls:
- https://s2.q4cdn.com/299287126/files/doc_financials/2023/q3/AMZN-Q3-2023-Earnings-Release.pdf
use_for: Answering questions about earning reports
name: Earnings assistant
intro: πŸ‘‹ Hi there! How can I help you?
prompt: Use the earnings report to answer any questions
# Multi-doc RAG
workflows:
- superagent:
llm: gpt-4-1106-preview
data:
urls:
- https://s2.q4cdn.com/299287126/files/doc_financials/2023/q3/AMZN-Q3-2023-Earnings-Release.pdf
- https://digitalassets.tesla.com/tesla-contents/image/upload/IR/TSLA-Q3-2023-Update-3.pdf
use_for: Answering questions about earning reports
name: Earnings assistant
intro: πŸ‘‹ Hi there! How can I help you?
prompt: Use the earnings reports to answer any questions
# Browser
workflows:
- superagent:
llm: gpt-4-1106-preview
name: Browser assistant
intro: πŸ‘‹ Hi there! How can I help you?
prompt: Use the browser to answer any questions
tools:
- browser:
name: browser
use_for: searching the internet
# Sequential workflows
workflows:
- superagent:
llm: gpt-4-1106-preview
name: Code writer
intro: πŸ‘‹ Hi there! How can I help you?
prompt: Write code based on the users input
- superagent:
llm: gpt-4-1106-preview
name: Code reviewer
intro: πŸ‘‹ Hi there! How can I help you?
prompt: Make a professional code review based on the users input
# Sequential workflows with OAI Assistants
workflows:
- superagent:
llm: gpt-4-1106-preview
name: Code writer
intro: πŸ‘‹ Hi there! How can I help you?
prompt: Write code based on the users input
- openai_assistant:
llm: gpt-4-1106-preview
name: Code reviewer
intro: πŸ‘‹ Hi there! How can I help you?
prompt: Make a professional code review based on the users input
# Workflows with OAI Assistants
workflows:
- openai_assistant:
llm: gpt-4-1106-preview
name: Earnings assistant
prompt: You are an expert at answering questions about earnings reports
data:
urls:
- https://s2.q4cdn.com/299287126/files/doc_financials/2023/q3/AMZN-Q3-2023-Earnings-Release.pdf
use_for: fetching data
tools:
- retrieval:
name: Retrieval
use_for: Retrieving documents
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment