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: README.md
+13-14Lines changed: 13 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,10 @@
2
2
3
3
This repository demonstrates how to build a powerful semantic search engine using Couchbase as the backend database, combined with various AI-powered embedding and language model providers such as OpenAI, Azure OpenAI, Anthropic (Claude), Cohere, Hugging Face, Jina AI, Mistral AI, and Voyage AI.
4
4
5
+
Each example provides two distinct approaches:
6
+
-**FTS (Full Text Search)**: Uses Couchbase's vector search capabilities with pre-created search indices
Semantic search goes beyond simple keyword matching by understanding the context and meaning behind the words in a query, making it essential for applications that require intelligent information retrieval.
6
10
7
11
## Features
@@ -27,10 +31,13 @@ Semantic search goes beyond simple keyword matching by understanding the context
27
31
cd vector-search-cookbook
28
32
```
29
33
30
-
### 2. Set up the Couchbase Vector Search Index:
34
+
### 2. Choose Your Approach:
35
+
36
+
#### For FTS (Full Text Search) Examples:
37
+
Use the provided `{model}_index.json` index definition file in each model's `fts/` directory to create a new vector search index in your Couchbase cluster.
31
38
32
-
Use the provided `{model}_index.json` index definition file in each model's directory to create a new index in your Couchbase cluster.
33
-
The index supports separate properties for each embedding model.
39
+
#### For GSI (Global Secondary Index) Examples:
40
+
No additional setup required. GSI index will be created in each model's example.
34
41
35
42
### 3. Run the notebook file
36
43
@@ -68,9 +75,9 @@ Each notebook implements a semantic search function that performs similarity sea
68
75
69
76
The system implements caching functionality using `CouchbaseCache` to improve performance for repeated queries.
70
77
71
-
## Couchbase Vector Search Index
78
+
## Couchbase Vector Search Index (FTS Approach Only)
72
79
73
-
For more information on creating a vector search index, please follow the [instructions](https://docs.couchbase.com/cloud/vector-search/create-vector-search-index-ui.html). The following is an example for Azure OpenAI Model.
80
+
For FTS examples, you'll need to create a vector search index using the provided JSON configuration files. For more information on creating a vector search index, please follow the [instructions](https://docs.couchbase.com/cloud/vector-search/create-vector-search-index-ui.html). The following is an example for Azure OpenAI Model.
74
81
75
82
```json
76
83
{
@@ -146,12 +153,4 @@ For more information on creating a vector search index, please follow the [instr
146
153
},
147
154
"sourceParams": {}
148
155
}
149
-
```
150
-
151
-
## Contributing
152
-
153
-
Contributions are welcome! Please feel free to submit a pull request or open an issue for any bugs or feature requests.
154
-
155
-
## License
156
-
157
-
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
Copy file name to clipboardExpand all lines: awsbedrock/fts/RAG_with_Couchbase_and_Bedrock.ipynb
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@
6
6
"source": [
7
7
"# Introduction\n",
8
8
"\n",
9
-
"In this guide, we will walk you through building a powerful semantic search engine using Couchbase as the backend database and [Amazon Bedrock](https://aws.amazon.com/bedrock/) as both the embedding and language model provider. Semantic search goes beyond simple keyword matching by understanding the context and meaning behind the words in a query, making it an essential tool for applications that require intelligent information retrieval. This tutorial is designed to be beginner-friendly, with clear, step-by-step instructions that will equip you with the knowledge to create a fully functional semantic search system from scratch."
9
+
"In this guide, we will walk you through building a powerful semantic search engine using Couchbase as the backend database and [Amazon Bedrock](https://aws.amazon.com/bedrock/) as both the embedding and language model provider. Semantic search goes beyond simple keyword matching by understanding the context and meaning behind the words in a query, making it an essential tool for applications that require intelligent information retrieval. This tutorial is designed to be beginner-friendly, with clear, step-by-step instructions that will equip you with the knowledge to create a fully functional semantic search system using the FTS service from scratch. Alternatively if you want to perform semantic search using the GSI index, please take a look at [this.](https://developer.couchbase.com/tutorial-aws-bedrock-couchbase-rag-with-global-secondary-index/)"
0 commit comments