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
This guide shows you how to set up a ready-to-use AI semantic search for your documents and files.
10
12
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
13
@@ -32,7 +34,7 @@ jobs:
32
34
runs-on: ubuntu-latest
33
35
steps:
34
36
- uses: actions/checkout@v4
35
-
37
+
36
38
- name: Build AI Search Database
37
39
uses: sqliteai/sqlite-aisearch-action@v1
38
40
with:
@@ -49,20 +51,21 @@ To enable search functionality on your indexed database, create an Edge Function
49
51
1. Access your dashboard at https://dashboard.sqlitecloud.io
50
52
2. Navigate to the same project where your database was uploaded
4. Create a new `Javascript Function` and copy the code from [aisearch-docs.js](https://github.com/sqliteai/sqlite-aisearch-action/blob/main/search_edge_function_template/aisearch-docs.js) into the editor
54
56
5. Deploy and test
55
57
56
58
### How to Perform a Search
57
59
58
60
1. Go to **Details** in the Edge Function panel and copy the **Function URL**
59
-

61
+

60
62
2. Execute a GET request with a URL-encoded query as the `query` parameter
61
63
62
-
Example:
63
-
```
64
-
GET https://myproject.cloud/v2/functions/aisearch-docs?query=what%27s+Offsync%3F
65
-
```
64
+
Example:
65
+
66
+
```
67
+
GET https://myproject.cloud/v2/functions/aisearch-docs?query=what%27s+Offsync%3F
68
+
```
66
69
67
70
## Step 3: Integrate the Docs Chatbot in Your Website
68
71
@@ -95,6 +98,13 @@ function App() {
95
98
}
96
99
```
97
100
101
+
<Callouttype="note">
102
+
- Replace the `searchUrl` with your **Function URL** from Step 2
103
+
- For the `apiKey`, you need to use your admin API key or an API key with read
104
+
permissions on your AI docs database. Learn how to create and manage API keys
105
+
in the [API Key documentation](/docs/apikey).
106
+
</Callout>
107
+
98
108
### Vanilla JavaScript
99
109
100
110
For non-React applications, use the web component:
0 commit comments