You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main.js
+23-8Lines changed: 23 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -3,8 +3,10 @@ import bodyParser from "body-parser";
3
3
importcorsfrom"cors";
4
4
importexpressfrom"express";
5
5
import{
6
-
getChain,
6
+
getRagChain,
7
+
getOpenAIChat,
7
8
intializeDocumentRetrieverasinitializeRetriever,
9
+
8
10
}from"./embeddings.js";
9
11
10
12
constapp=express();
@@ -20,9 +22,9 @@ let retriever = null;
20
22
21
23
constport=3003;
22
24
23
-
constDEFAULT_SYSTEM_PROMPT="You are an AI chat bot with information about Appwrite documentation. You need to help developers answer Appwrite related questions only. You will be given an input and you need to respond with the appropriate answer, using information confirmed with Appwrite documentation and reference pages. If applicable, show code examples. Code examples should use the Node and Web Appwrite SDKs unless otherwise specified.";
25
+
constSYSTEM_PROMPT="You are an AI chat bot with information about Appwrite documentation. You need to help developers answer Appwrite related questions only. You will be given an input and you need to respond with the appropriate answer, using information confirmed with Appwrite documentation and reference pages. If applicable, show code examples. Code examples should use the Node and Web Appwrite SDKs unless otherwise specified.";
0 commit comments