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: sqlite-cloud/sqlite-ai/aisearch-documents.mdx
+59-3Lines changed: 59 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,11 +7,11 @@ slug: aisearch-documents
7
7
---
8
8
9
9
This guide shows you how to set up a ready-to-use AI semantic search for your documents and files.
10
-
Using the [sqlite-aisearch-action](https://github.com/sqliteai/sqlite-aisearch-action), you can integrate document processing into your GitHub workflow and set up a chat bot on your site in just a few steps.
10
+
Using the [sqlite-aisearch-action](https://github.com/sqliteai/sqlite-aisearch-action), you can integrate document processing into your GitHub workflow and set up a chatbot on your site in just a few steps.
11
11
12
12
The semantic search is powered by [SQLite RAG](https://github.com/sqliteai/sqlite-rag).
13
13
14
-
## Set Up Your GitHub Workflow
14
+
## Step 1: Set Up Your GitHub Workflow
15
15
16
16
1.**Get Your Connection String**: Ensure you have a project on the [SQLite Cloud dashboard](https://dashboard.sqlitecloud.io). If not, sign up for [SQLite AI](https://sqlite.ai) to create one for free.
17
17
@@ -42,7 +42,7 @@ jobs:
42
42
source_files: ./path/to/documents
43
43
```
44
44
45
-
## Create the Search Edge Function
45
+
## Step 2: Create the Search Edge Function
46
46
47
47
To enable search functionality on your indexed database, create an Edge Function using the provided template:
48
48
@@ -63,3 +63,59 @@ To enable search functionality on your indexed database, create an Edge Function
63
63
```
64
64
GET https://myproject.cloud/v2/functions/aisearch-docs?query=what%27s+Offsync%3F
65
65
```
66
+
67
+
## Integrate the Docs Chatbot in Your Website
68
+
69
+
Once you have your search edge function deployed, you can easily add an interactive AI chatbot to your website. The chatbot provides a user-friendly interface for your documentation search, powered by the indexed content.
70
+
71
+
### React Integration
72
+
73
+
Install the chatbot package:
74
+
75
+
```bash
76
+
npm install @sqliteai/docs-chatbot
77
+
```
78
+
79
+
Then add it to your React application:
80
+
81
+
```tsx
82
+
import { DocsChatbot } from "@sqliteai/docs-chatbot";
By default, the chatbot displays as a floating button in the bottom-right corner.
121
+
For advanced configuration options including custom triggers, theming, and API reference, see the [full docs chatbot documentation](https://github.com/sqliteai/docs-chatbot).
0 commit comments