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
Make sure to add the `default-bucket` field to the config file with the name of the bucket you created earlier.
136
+
137
+
```bash
138
+
default-bucket = "your-bucket-name"
139
+
```
140
+
141
+
You can find an example config file in the `./config_file` directory for reference.
142
+
135
143
#### Import Data with Couchbase Shell
136
144
137
145
Change into the directory where the data files with embeddings are:
@@ -143,7 +151,7 @@ cd data/individual_items_with_embedding
143
151
Open up Couchbase shell passing in an argument with the location of the config file defining your Couchbase information:
144
152
145
153
```bash
146
-
cbsh --config-dir ../config-file
154
+
cbsh --config-dir ../../config-file
147
155
```
148
156
149
157
Once in the shell, run the `nodes` command to just perform a sanity check that you are connected to the correct cluster.
@@ -168,6 +176,14 @@ Now, import the data into the bucket you created earlier:
168
176
ls *_with_embedding.json | each { |it| open $it.name | wrap content | insert id $in.content._default.name } | doc upsert
169
177
```
170
178
179
+
While, in this workshop we are focused on creating a *vector search index*, you can also create a primary search index to enable full-text search on the data:
180
+
181
+
```bash
182
+
query "create primary index on name_of_your_bucket._default._default"
183
+
```
184
+
185
+
Make sure to replace the `name_of_your_bucket` with the name of your bucket you created.
186
+
171
187
Once this is done, you can perform a sanity check to ensure the documents were inserted by running a query to selectjust one:
0 commit comments