Skip to content

Commit b4e6bf9

Browse files
committed
Generated markdown tutorials from Jupyter Notebooks
Generated from: couchbase-examples/vector-search-cookbook
1 parent b0c23ca commit b4e6bf9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tutorial/markdown/generated/vector-search-cookbook/awsbedrock-agents-lambda-approach-Bedrock_Agents_Lambda.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ def setup_collection(cluster, bucket_name, scope_name, collection_name):
406406

407407
### 3.5 setup_search_index
408408

409-
This function is responsible for creating or updating the Couchbase Search (FTS) index required for vector similarity search. Key operations include:
409+
This function is responsible for creating or updating the Couchbase Search index required for vector similarity search. Key operations include:
410410
- Loading the index definition from a specified JSON file (`index_definition_path`).
411411
- Dynamically updating the loaded index definition to use the correct `index_name` and `sourceName` (bucket name) provided as arguments. This allows for a template index definition file to be reused.
412412
- Using the `SearchIndexManager` (obtained from the cluster object) to `upsert_index`. Upserting means the index will be created if it doesn't exist, or updated if an index with the same name already exists. This makes the operation idempotent.
@@ -1612,7 +1612,7 @@ except Exception as e:
16121612

16131613
This block focuses on preparing the Couchbase environment to serve as the vector store for the agent. It involves:
16141614
1. Calling `setup_collection()`: This helper function ensures that the target Couchbase bucket, scope, and collection (defined by `CB_BUCKET_NAME`, `SCOPE_NAME`, `COLLECTION_NAME`) are created if they don't already exist. It also ensures a primary index is present on the collection.
1615-
2. Calling `setup_search_index()`: This creates or updates the Couchbase Full-Text Search (FTS) index (named by `INDEX_NAME`) using the definition from `INDEX_JSON_PATH`. This search index is crucial for performing vector similarity searches.
1615+
2. Calling `setup_search_index()`: This creates or updates the Couchbase Search index (named by `INDEX_NAME`) using the definition from `INDEX_JSON_PATH`. This search index is crucial for performing vector similarity searches.
16161616
3. Calling `clear_collection()`: This function deletes all existing documents from the target collection. This step ensures that each run of the notebook starts with a clean slate, preventing data from previous experiments from interfering with the current one.
16171617
If any part of this Couchbase setup fails, an exception is logged and re-raised to stop further execution.
16181618

0 commit comments

Comments
 (0)