Skip to content

Commit 98fb382

Browse files
committed
DA-1253 update: scope and collection names
1 parent ade078b commit 98fb382

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

tutorial/markdown/python/python-haystack-pdf-chat/search_based/python-haystack-pdf-chat.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ Specifically, you need to do the following:
8282

8383
### Create Bucket
8484

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.
8787

8888
### Automatic Search Index Creation
8989

@@ -95,15 +95,15 @@ If automatic creation fails or you prefer to create the index manually, you can
9595

9696
- Copy the index definition from `sampleSearchIndex.json` to a new file.
9797
- 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`).
9999
- Import the file in Capella using the instructions in the documentation.
100100
- Click on Create Index to create the index.
101101

102102
- [Couchbase Server](https://docs.couchbase.com/server/current/search/import-search-index.html)
103103

104104
- Click on Search -> Add Index -> Import.
105105
- Copy the contents of `sampleSearchIndex.json`.
106-
- Update `sourceName` and `types` key as mentioned above.
106+
- Update `sourceName` and `types` key as mentioned above (e.g., `pdf_data.pdf_chunks`).
107107
- Paste the updated JSON in the Import screen.
108108
- Click on Create Index to create the index.
109109

@@ -144,7 +144,7 @@ The index definition is stored in `sampleSearchIndex.json` and is automatically
144144
"store_dynamic": false,
145145
"type_field": "_type",
146146
"types": {
147-
"scope.coll": {
147+
"pdf_data.pdf_chunks": {
148148
"dynamic": true,
149149
"enabled": true,
150150
"properties": {
@@ -198,7 +198,7 @@ The index definition is stored in `sampleSearchIndex.json` and is automatically
198198
}
199199
```
200200

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.
202202
203203
### Setup Environment Config
204204

@@ -219,7 +219,7 @@ Copy the `secrets.example.toml` file in `.streamlit` folder and rename it to `se
219219
220220
> The [connection string](https://docs.couchbase.com/python-sdk/current/howtos/managing-connections.html#connection-strings) expects the `couchbases://` or `couchbase://` part.
221221
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`.
223223
224224
### Running the Application
225225

0 commit comments

Comments
 (0)