Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions autovec-tutorial/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Couchbase Capella AI Services Auto-Vectorization with LangChain

This guide is a comprehensive tutorial demonstrating how to use Couchbase Capella's AI Services auto-vectorization feature to automatically convert your data into vector embeddings and perform semantic search using LangChain.

## 📋 Overview

The main tutorial is contained in the Jupyter notebook `autovec_langchain.ipynb`, which walks you through:

1. **Couchbase Capella Setup** - Creating account, cluster, and access controls
2. **Data Upload & Processing** - Using sample data
3. **Model Deployment** - Deploying embedding models for vectorization
4. **Auto-Vectorization Workflow** - Setting up automated embedding generation
5. **LangChain Integration** - Building semantic search applications with vector similarity

## 🚀 Quick Start

### Prerequisites

- Python 3.8 or higher
- A Couchbase Capella account
- Basic understanding of vector databases and embeddings

### Installation Steps

1. **Clone or download this repository**
```bash
git clone https://github.com/couchbase-examples/vector-search-cookbook.git
cd vector-search-cookbook/autovec-tutorial
```

2. **Install Python dependencies**
```bash
pip install jupyter
pip install couchbase
pip install langchain-couchbase
pip install langchain-nvidia-ai-endpoints
```

3. **Start Jupyter Notebook**
```bash
jupyter notebook
```
or
```bash
jupyter lab
```

4. **Open the tutorial notebook**
- Navigate to `autovec_langchain.ipynb` in the Jupyter interface
- Follow the step-by-step instructions in the notebook
```

**Note**: This tutorial is designed for educational purposes. For production deployments, ensure proper security configurations and SSL/TLS verification.
350 changes: 350 additions & 0 deletions autovec-tutorial/autovec_langchain.ipynb

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions autovec-tutorial/frontmatter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
# frontmatter
path: "/tutorial-couchbase-autovectorization-langchain"
title: Auto-Vectorization with Couchbase Capella AI Services and LangChain
short_title: Auto-Vectorization with Couchbase and LangChain
description:
- Learn how to use Couchbase Capella's AI Services auto-vectorization feature to automatically convert your data into vector embeddings.
- This tutorial demonstrates how to set up automated embedding generation workflows and perform semantic search using LangChain.
content_type: tutorial
filter: sdk
technology:
- vector search
tags:
- LangChain
sdk_language:
- python
length: 20 Mins
---
Binary file added autovec-tutorial/img/Access_control.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added autovec-tutorial/img/Create_auto_vec.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added autovec-tutorial/img/Select_embedding_model.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added autovec-tutorial/img/cluster_cloud_config.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added autovec-tutorial/img/cluster_no_nodes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added autovec-tutorial/img/create_cluster.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added autovec-tutorial/img/deploying_model.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added autovec-tutorial/img/import_sd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added autovec-tutorial/img/imported_data_hotel.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added autovec-tutorial/img/importing_model.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added autovec-tutorial/img/login.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added autovec-tutorial/img/login_.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added autovec-tutorial/img/model_api_key_form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added autovec-tutorial/img/model_setup_access.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added autovec-tutorial/img/node_select_cluster_opt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added autovec-tutorial/img/password_cluster.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added autovec-tutorial/img/select_cluster.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added autovec-tutorial/img/setup_access.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added autovec-tutorial/img/start_workflow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added autovec-tutorial/img/vector_all_field_mapping.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added autovec-tutorial/img/vector_data_source.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added autovec-tutorial/img/vector_field_mapping.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added autovec-tutorial/img/vector_index.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added autovec-tutorial/img/vector_index_page.png
Binary file added autovec-tutorial/img/workflow.png
Binary file added autovec-tutorial/img/workflow_deployed.png
Binary file added autovec-tutorial/img/workflow_summary.png