-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.py
33 lines (24 loc) · 1.17 KB
/
test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# test
# from agents.podcast_agent import execute_rag_response
# grade = execute_rag_response(
# query="Is Israel doing the correct thing attacking Gaza?",
# user_intent="question",
# output_emotion="neutral"
# )
# print(grade)
# test
# from agents.entry import chatbot_entry
# from ell import Message
# result = chatbot_entry(
# query="What is the podcast about?",
# history=[
# Message(role="user", content="What is the podcast about?"),
# Message(role="assistant", content="The podcast is about AI and machine learning"),
# Message(role="user", content="How has machine learning evolved over the years?"),
# Message(role="assistant", content="Machine learning has evolved significantly over the years, with advancements in deep learning, reinforcement learning, and natural language processing."),
# Message(role="user", content="What are the key applications of AI in healthcare?"),
# Message(role="assistant", content="AI is used in healthcare for medical imaging, drug discovery, personalized treatment, and predictive analytics."),
# ],
# facts="The podcast is about AI and machine learning"
# )
# print(result)