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/generated/vector-search-cookbook/crewai-short-term-memory-query_based-CouchbaseStorage_Demo.md
Copy file name to clipboardExpand all lines: tutorial/markdown/generated/vector-search-cookbook/crewai-short-term-memory-search_based-CouchbaseStorage_Demo.md
title: Implementing Short-Term Memory for CrewAI Agents with Couchbase Search Vector Index
5
+
short_title: CrewAI Short-Term Memory with Couchbase Search Vector Index
6
6
description:
7
-
- Learn how to implement short-term memory for CrewAI agents using Couchbase's vector search capabilities using FTS.
7
+
- Learn how to implement short-term memory for CrewAI agents using Couchbase's vector search capabilities with Search Vector Index.
8
8
- This tutorial demonstrates how to store and retrieve agent interactions using semantic search.
9
9
- You'll understand how to enhance CrewAI agents with memory capabilities using LangChain and Couchbase.
10
10
content_type: tutorial
11
11
filter: sdk
12
12
technology:
13
13
- vector search
14
14
tags:
15
-
- FTS
15
+
- Search Vector Index
16
16
- Artificial Intelligence
17
17
- LangChain
18
18
- CrewAI
@@ -22,28 +22,28 @@ length: 45 Mins
22
22
---
23
23
24
24
25
+
25
26
<!--- *** WARNING ***: Autogenerated markdown file from jupyter notebook. ***DO NOT EDIT THIS FILE***. Changes should be made to the original notebook file. See commit message for source repo. -->
This notebook demonstrates how to implement a custom storage backend for CrewAI's memory system using Couchbase and vector search. Alternatively if you want to perform semantic search using the GSI index, please take a look at [this.](https://developer.couchbase.com/tutorial-crewai-short-term-memory-couchbase-with-global-secondary-index)
33
+
This notebook demonstrates how to implement a custom storage backend for CrewAI's memory system using Couchbase and Search Vector Index. Alternatively if you want to perform semantic search using Hyperscale or Composite Vector Index, please take a look at [this tutorial.](https://developer.couchbase.com/tutorial-crewai-short-term-memory-couchbase-with-hyperscale-or-composite-vector-index)
33
34
34
35
Here's a breakdown of each section:
35
36
36
-
How to run this tutorial
37
-
----------------------
37
+
### How to run this tutorial
38
+
38
39
This tutorial is available as a Jupyter Notebook (.ipynb file) that you can run
39
-
interactively. You can access the original notebook [here](https://github.com/couchbase-examples/vector-search-cookbook/blob/main/crewai-short-term-memory/fts/CouchbaseStorage_Demo.ipynb).
40
+
interactively. You can access the original notebook [here](https://github.com/couchbase-examples/vector-search-cookbook/blob/main/crewai-short-term-memory/search_based/CouchbaseStorage_Demo.ipynb).
40
41
41
42
You can either:
42
43
- Download the notebook file and run it on [Google Colab](https://colab.research.google.com)
43
44
- Run it on your system by setting up the Python environment
44
45
45
-
Before you start
46
-
---------------
46
+
### Before you start
47
47
48
48
1. Create and Deploy Your Free Tier Operational cluster on [Capella](https://cloud.couchbase.com/sign-up)
49
49
- To get started with [Couchbase Capella](https://cloud.couchbase.com), create an account and use it to deploy
@@ -58,7 +58,7 @@ Before you start
58
58
used in the application
59
59
- Allow access to the Cluster from the IP on which the application is running by following the [Network Security documentation](https://docs.couchbase.com/cloud/security/security.html#public-access)
60
60
61
-
# Memory in AI Agents
61
+
##Memory in AI Agents
62
62
63
63
Memory in AI agents is a crucial capability that allows them to retain and utilize information across interactions, making them more effective and contextually aware. Without memory, agents would be limited to processing only the immediate input, lacking the ability to build upon past experiences or maintain continuity in conversations.
64
64
@@ -119,7 +119,7 @@ This section installs the necessary Python packages:
This section demonstrates the implementation of a custom vector storage solution using Couchbase:
208
+
This section demonstrates the implementation of a custom vector storage solution using Couchbase with Search Vector Index:
192
209
193
210
> **Note on Implementation:** This example uses the LangChain Couchbase integration (`langchain_couchbase`) for simplicity and to demonstrate integration with the broader LangChain ecosystem. In production environments, you may want to use the Couchbase SDK directly for better performance and more control.
194
211
195
-
> For more information on using the Couchbase SDK directly, refer to:
212
+
> For more information on using the Couchbase SDK directly and Search Vector Indexes, refer to:
0 commit comments