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: updates/website-11-21-23.md
+8-4Lines changed: 8 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ In the era of advanced technology, integrating Artificial Intelligence (AI) into
20
20
21
21
Our AI chat system takes a unique approach by analyzing our documentation to find the most suitable information for user queries. If the AI can't provide a direct answer, it gracefully redirects users to our Discord community for further assistance.
22
22
23
-
### 🚫Warning🚫 this is a very technical document going deep into code if you care great this is the blog post I wanted when we first started down this path.
23
+
### 🚫Warning🚫 this is a very technical document going deep into code if you care great this is the blog post I wanted when we first started down this path. If not your take away can be we are testing an ai chat for the website.
24
24
25
25
## How Does It Get Info from Our Docs
26
26
@@ -108,7 +108,7 @@ metadata: {
108
108
```
109
109
110
110
Now you can see mostly the same stuff but a new member called `embedding` these are all of the words as numbers.
111
-
These we can use to do similarity searches using math instead of string, making the whole search very fast and more acurate.
111
+
These we can use to do similarity searches using math instead of string, making the whole search very fast and more accurate.
112
112
113
113
114
114
## How We Generate the Answer
@@ -123,13 +123,17 @@ To generate the final answer, we utilize prompt engineering. This involves takin
123
123
124
124
```typescript
125
125
126
-
exportconst retriever =async (prompt:string, chatHistory:string[] = []) => { // this is our entry point where we take in the prompt and chat history then build the prompt we will send into the ai and seach our docs database for relevent info for the ai to use as context.
126
+
exportconst retriever =async (prompt:string, chatHistory:string[] = []) => { // this is our
127
+
//entry point where we take in the prompt and chat history then build the prompt we will send into
128
+
//the ai and seach our docs database for relevent info for the ai to use as context.
const buildProptemplate =async (prompt:string, chatHistory:string[] = []) => { // this function takes the user's question and the chat history and formats it into a prompt for the AI to use
134
+
const buildProptemplate =async (prompt:string, chatHistory:string[] = []) => { // this function
0 commit comments