assistant = Crisper.create_assistant(
name="customer-support-bot"
)
assistant.add_source(
type="url",
url="https://help.company.com/"
)
assistant.ask(
"How can I get a refund?"
)
=> "You can request refund from our billing page."
assistant = Crisper.create_assistant(
name="paul-graham-pdf"
)
assistant.add_source(
type="pdf",
url="https://..../how-to-do-great-work-pg.pdf"
)
assistant.ask(
"How should one do great work?"
)
=> "To do great work, one should first find
the type of work they are most suited for,
which will likely be a close match to their
abilities and interests.
This can only be determined by trying different things."
assistant = Crisper.create_assistant(
name="revenue-analytics"
)
assistant.add_source(
type="postgres",
options={
connection_string: ""
}
)
assistant.ask(
"How many users signed up this month"?
)
=> "You had 100 sign ups this months,
10% more than last month"