Create test.py
Browse files
test.py
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
# replace this with your OpenAI key
|
3 |
+
os.environ["OPENAI_API_KEY"] = "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";
|
4 |
+
|
5 |
+
from embedchain import App
|
6 |
+
app = App()
|
7 |
+
app.add(("What is myidfi", "myIDFi makes getting a new mortgage simple and easy"), data_type="qna_pair");
|
8 |
+
app.add(("Where do I go to loging to Realtor", "http://localhost:3000/signin?ROLE=REALTOR"), data_type="qna_pair");
|
9 |
+
app.add(("Where do I go to loging to Lender", "http://localhost:3000/signin?ROLE=LENDER"), data_type="qna_pair");
|
10 |
+
app.add(("Where do I go to loging to Customer", "http://localhost:3000/signin?ROLE=CUSTOMER"), data_type="qna_pair");
|
11 |
+
app.add(("Where do I go to the Website", "https://www.eddiequiroz.com/"), data_type="qna_pair");
|
12 |
+
app.add(("Where do I go to the About Us", "https://www.eddiequiroz.com/about-us/"), data_type="qna_pair");
|
13 |
+
app.add(("Where do I go to the Blog", "https://www.eddiequiroz.com/blog/"), data_type="qna_pair");
|
14 |
+
app.add(("Where do I go to the Contact Us", "https://www.eddiequiroz.com/contact-us/"), data_type="qna_pair");
|
15 |
+
k=app.query("Hey where I can go to about us page");
|
16 |
+
print(k);
|