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: tutorial/markdown/python/python-haystack-pdf-chat/search_based/python-haystack-pdf-chat.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -82,8 +82,8 @@ Specifically, you need to do the following:
82
82
83
83
### Create Bucket
84
84
85
-
- For this of this tutorial, we will use a specific bucket, scope, and collection. However, you may use any name of your choice but make sure to update names in all the steps.
86
-
- Create a bucket named `sample_bucket`. We will use the `scope` scope and `coll` collection of this bucket.
85
+
- For this tutorial, we will use a specific bucket, scope, and collection. However, you may use any name of your choice but make sure to update names in all the steps.
86
+
- Create a bucket named `sample_bucket`. We will use the `pdf_data` scope and `pdf_chunks` collection of this bucket.
87
87
88
88
### Automatic Search Index Creation
89
89
@@ -95,15 +95,15 @@ If automatic creation fails or you prefer to create the index manually, you can
95
95
96
96
- Copy the index definition from `sampleSearchIndex.json` to a new file.
97
97
- Update `sourceName` to match your bucket name.
98
-
- Update the `types` key to match your `scope_name.collection_name`.
98
+
- Update the `types` key to match your `scope_name.collection_name` (e.g., `pdf_data.pdf_chunks`).
99
99
- Import the file in Capella using the instructions in the documentation.
- Update `sourceName` and `types` key as mentioned above.
106
+
- Update `sourceName` and `types` key as mentioned above (e.g., `pdf_data.pdf_chunks`).
107
107
- Paste the updated JSON in the Import screen.
108
108
- Click on Create Index to create the index.
109
109
@@ -144,7 +144,7 @@ The index definition is stored in `sampleSearchIndex.json` and is automatically
144
144
"store_dynamic": false,
145
145
"type_field": "_type",
146
146
"types": {
147
-
"scope.coll": {
147
+
"pdf_data.pdf_chunks": {
148
148
"dynamic": true,
149
149
"enabled": true,
150
150
"properties": {
@@ -198,7 +198,7 @@ The index definition is stored in `sampleSearchIndex.json` and is automatically
198
198
}
199
199
```
200
200
201
-
> **Note**: The application automatically replaces `sample_bucket` with your actual bucket name and `scope.coll` with your actual `scope_name.collection_name` from the environment variables.
201
+
> **Note**: The application automatically replaces `sample_bucket` with your actual bucket name and `pdf_data.pdf_chunks` with your actual `scope_name.collection_name` from the environment variables.
202
202
203
203
### Setup Environment Config
204
204
@@ -219,7 +219,7 @@ Copy the `secrets.example.toml` file in `.streamlit` folder and rename it to `se
219
219
220
220
> The [connection string](https://docs.couchbase.com/python-sdk/current/howtos/managing-connections.html#connection-strings) expects the `couchbases://` or `couchbase://` part.
221
221
222
-
> For this tutorial, `DB_BUCKET = sample-bucket`, `DB_SCOPE = scope`, `DB_COLLECTION = coll` and `INDEX_NAME = sample-index`.
222
+
> For this tutorial, `DB_BUCKET = sample-bucket`, `DB_SCOPE = pdf_data`, `DB_COLLECTION = pdf_chunks` and `INDEX_NAME = sample-index`.
0 commit comments