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
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"source": [
"# Introduction\n",
"In this guide, we will walk you through building a powerful semantic search engine using Couchbase as the backend database, [OpenAI](https://openai.com) as the embedding and LLM provider, and [PydanticAI](https://ai.pydantic.dev) as an agent orchestrator. 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."
"In this guide, we will walk you through building a powerful semantic search engine using Couchbase as the backend database, [OpenAI](https://openai.com) as the embedding and LLM provider, and [PydanticAI](https://ai.pydantic.dev) as an agent orchestrator. 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. Alternatively if you want to perform semantic search using the GSI index, please take a look at [this.](https://developer.couchbase.com/tutorial-pydantic-ai-couchbase-rag-with-global-secondary-index/)"
]
},
{
Expand Down
7 changes: 4 additions & 3 deletions pydantic_ai/frontmatter.md → pydantic_ai/fts/frontmatter.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
# frontmatter
path: "/tutorial-pydantic-ai-couchbase-rag"
title: Retrieval-Augmented Generation (RAG) with Couchbase and PydanticAI
path: "/tutorial-pydantic-ai-couchbase-rag-with-fts"
title: Retrieval-Augmented Generation (RAG) with Couchbase and PydanticAI using FTS
short_title: RAG with Couchbase and PydanticAI
description:
- Learn how to build a semantic search engine using Couchbase and PydanticAI.
- Learn how to build a semantic search engine using Couchbase and PydanticAI using FTS.
- This tutorial demonstrates how to integrate Couchbase's vector search capabilities with PydanticAI using tool calling.
- You'll understand how to perform Retrieval-Augmented Generation (RAG) using PydanticAI and Couchbase.
content_type: tutorial
Expand All @@ -16,6 +16,7 @@ tags:
- LangChain
- OpenAI
- PydanticAI
- FTS
sdk_language:
- python
length: 30 Mins
Expand Down
7 changes: 7 additions & 0 deletions pydantic_ai/gsi/.env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
OPENAI_API_KEY=
CB_HOST=
CB_USERNAME=
CB_PASSWORD=
CB_BUCKET_NAME=
SCOPE_NAME=
COLLECTION_NAME=
1,534 changes: 1,534 additions & 0 deletions pydantic_ai/gsi/RAG_with_Couchbase_and_PydanticAI.ipynb

Large diffs are not rendered by default.

23 changes: 23 additions & 0 deletions pydantic_ai/gsi/frontmatter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
# frontmatter
path: "/tutorial-pydantic-ai-couchbase-rag-with-global-secondary-index"
title: Retrieval-Augmented Generation (RAG) with Couchbase and PydanticAI using GSI
short_title: RAG with Couchbase and PydanticAI using GSI
description:
- Learn how to build a semantic search engine using Couchbase and PydanticAI using GSI.
- This tutorial demonstrates how to integrate Couchbase's vector search capabilities with PydanticAI using GSI indexes.
- You'll understand how to perform Retrieval-Augmented Generation (RAG) using PydanticAI and Couchbase with GSI optimization.
content_type: tutorial
filter: sdk
technology:
- vector search
tags:
- Artificial Intelligence
- LangChain
- OpenAI
- PydanticAI
- GSI
sdk_language:
- python
length: 30 Mins
---