Skip to content

Commit b0c23ca

Browse files
DA-1334 update: tutorial with the terminology of the search index (#83)
DA-1328 update: tutorial with the terminology of the search index
1 parent 28d0fc6 commit b0c23ca

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

tutorial/markdown/nodejs/nodejs-langchain-pdf-chat/nodejs-langchain-pdf-chat.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ description:
1111
content_type: tutorial
1212
filter: sdk
1313
technology:
14-
- fts
14+
- vector search
1515
- kv
1616
tags:
17+
- Search Vector Index
1718
- Next.js
1819
- LangChain
1920
- OpenAI
@@ -37,7 +38,7 @@ This tutorial will demonstrate how to -
3738
## Prerequisites
3839

3940
- [LTS Node.js Version](https://nodejs.org/en/download)
40-
- Couchbase Cluster (Self Managed or Capella) version 7.6+ with [Search Service](https://docs.couchbase.com/server/current/fts/fts-introduction.html)
41+
- Couchbase Cluster (Self Managed or Capella) version 7.6+ with [Search Service](https://docs.couchbase.com/server/current/search/search.html)
4142

4243
> Note that this tutorial is designed to work with the latest Node SDK version (4.3.0+) for Couchbase. It will not work with the older Node.js versions.
4344
@@ -72,7 +73,7 @@ Specifically, you need to do the following:
7273

7374
#### Self Managed Setup
7475

75-
- Follow [Couchbase Installation Options](/tutorial-couchbase-installation-options) for installing the latest Couchbase Database Server Instance. Make sure to add the [Search Service](https://docs.couchbase.com/server/current/fts/fts-introduction.html)
76+
- Follow [Couchbase Installation Options](/tutorial-couchbase-installation-options) for installing the latest Couchbase Database Server Instance. Make sure to add the [Search Service](https://docs.couchbase.com/server/current/search/search.html)
7677

7778
### Create Bucket
7879

@@ -193,7 +194,7 @@ DB_PASSWORD=<password_for_couchbase_cluster>
193194
DB_BUCKET=<name_of_bucket_to_store_documents>
194195
DB_SCOPE=<name_of_scope_to_store_documents>
195196
DB_COLLECTION=<name_of_collection_to_store_documents>
196-
INDEX_NAME=<name_of_fts_index_with_vector_support>
197+
INDEX_NAME=<name_of_search_index_with_vector_support>
197198
```
198199

199200
> [OpenAI](https://openai.com) API Key is required for usage in generating embedding and querying LLM
@@ -254,7 +255,7 @@ When a user asks a question or provides a prompt:
254255
- The app queries this search index using the user's query embedding. Couchbase's Vector Search calculates the [similarity](https://www.couchbase.com/blog/vector-similarity-search/) (e.g., dot product) between the query embedding and the indexed PDF embeddings, enabling fast retrieval of the nearest neighbor embeddings.
255256
- The nearest neighbor embeddings represent the most semantically similar passages or sections from the PDF documents compared to the user's query.
256257
- The app retrieves the text content associated with these nearest neighbor embeddings, providing the necessary context for generating a relevant response.
257-
- Couchbase's Vector Search supports advanced indexing techniques, such as [scoped indexes](https://docs.couchbase.com/nodejs-sdk/current/howtos/full-text-searching-with-sdk.html#scoped-vs-global-indexes), [dynamic indexing](https://docs.couchbase.com/server/current/fts/fts-creating-index-from-REST-dynamic.html) and [hybrid search](https://docs.couchbase.com/nodejs-sdk/current/howtos/full-text-searching-with-sdk.html#combining-fts-and-vector-queries), allowing for efficient management, better scaling of the vector store and multiple types of search supported.
258+
- Couchbase's Vector Search supports advanced indexing techniques, such as [scoped indexes](https://docs.couchbase.com/nodejs-sdk/current/howtos/full-text-searching-with-sdk.html#scoped-vs-global-indexes), [dynamic indexing](https://docs.couchbase.com/server/current/search/create-search-index-rest-api.html) and [hybrid search](https://docs.couchbase.com/nodejs-sdk/current/howtos/full-text-searching-with-sdk.html#combining-fts-and-vector-queries), allowing for efficient management, better scaling of the vector store and multiple types of search supported.
258259
- The search index facilitates fast and accurate retrieval, enabling the app to provide context-aware and relevant responses to the user's queries, even when the phrasing or terminology differs from the PDF content.
259260
- Couchbase's Vector Search integrates seamlessly with LangChain's [CouchbaseSearchVectorStore](https://js.langchain.com/docs/integrations/vectorstores/couchbase#create-vector-store) class, abstracting away the complexities of vector similarity calculations.
260261

0 commit comments

Comments
 (0)