-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_Q_parse.py
19 lines (17 loc) · 900 Bytes
/
test_Q_parse.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import openai
from config import MODEL, OPENAI_API_KEY
from gpt_utils import get_multiple_queries
openai.api_key = OPENAI_API_KEY
model = MODEL
queries = [
"Using the documentation provided for Agility Finance, prepare a short introduction text covering the following points in max 250 char per point and upto 10 points. About, Minting/Withdraw features, Fees, Expected returns. Use more prominent features of Agility protocols to make points as necessary",
"Explain options contract",
"explain withdraw/mint/deposit in the context of this protocol",
"What are positions in Lyra and how to open and close them? Explain in detail. Also compare them with the industry standard",
]
query = "what is optionmarket contract in 100 words"
for query in queries:
print(query)
for query_split in get_multiple_queries(query, openai, model):
print(query_split)
print("---")