Skip to content

Conversation

@nithishr
Copy link
Contributor

@nithishr nithishr commented Dec 5, 2025

  • Updated the folder structure
  • Updated tutorial for Retrieval-Augmented Generation (RAG) using LangChain with Couchbase Search Vector Index
  • Updated frontmatter files for tutorial to define paths, titles, and descriptions.
  • Updated index definition
  • Updated Jupyter notebooks demonstrating the RAG pipeline, including setup, model usage, and example queries.

…arch Vector Index

- Updated the folder structure
- Updated tutorial for Retrieval-Augmented Generation (RAG) using LangChain with Couchbase Search Vector Index
- Updated frontmatter files for tutorial to define paths, titles, and descriptions.
- Updated index definition
- Developed Jupyter notebooks demonstrating the RAG pipeline, including setup, model usage, and example queries.
@github-actions
Copy link

github-actions bot commented Dec 5, 2025

Caution

Notebooks or Frontmatter Files Have Been Modified

  • Please ensure that a frontmatter.md file is accompanying the notebook file, and that the frontmatter is up to date.
  • These changes will be published to the developer portal tutorials only if frontmatter.md is included.
  • Proofread all changes before merging, as changes to notebook and frontmatter content will update the developer tutorial.

4 Notebook Files Modified:

Notebook File Frontmatter Included?
capella-ai/langchain/RAG_with_Couchbase_Capella.ipynb
capella-model-services/haystack/RAG_with_Couchbase_Capella.ipynb
capella-model-services/langchain/search_based/RAG_with_Capella_Model_Services_and_LangChain.ipynb
capella-model-services/llamaindex/RAG_with_Couchbase_Capella.ipynb

1 Frontmatter Files Modified:

Frontmatter File
capella-model-services/langchain/search_based/frontmatter.md
Note: frontmatter will be checked and tested in the Test Frontmatter workflow.

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @nithishr, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly updates the Retrieval-Augmented Generation (RAG) tutorials to align with the latest Capella Model Services and Couchbase Search Vector Index capabilities. The changes involve migrating from older AI services to the more current Capella Model Services, introducing a new, comprehensive LangChain-based RAG tutorial, and restructuring the tutorial directories for better organization. These updates ensure the examples are current, accurate, and leverage the most recent features for building intelligent information retrieval systems.

Highlights

  • Migration to Capella Model Services: The RAG tutorials have been updated to utilize Capella Model Services for both embedding and large language models, replacing the previous Capella AI Services.
  • Updated LangChain RAG Tutorial: A new Jupyter notebook (RAG_with_Capella_Model_Services_and_LangChain.ipynb) has been introduced, demonstrating an end-to-end RAG pipeline with the latest Capella Model Services and Couchbase Search Vector Index. This includes using Mistral-7B-Instruct-v0.3 as the LLM and NVIDIA NeMo Retriever Llama3.2 for embeddings, updated API key handling, and revised guardrail information.
  • Refined Folder Structure: The tutorial files have been reorganized into a more logical structure under capella-model-services/langchain/search_based/ to improve navigability and clarity.
  • Vector Index Definition Adjustment: The capella_index.json file was updated to reflect a new embedding dimension (2048), aligning with the NVIDIA NeMo Retriever Llama3.2 embedding model used.
  • Dependency Updates: Key Python package versions, including datasets, langchain-couchbase, and langchain-openai, have been upgraded to their latest compatible versions.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the RAG tutorials to use the new Capella Model Service and Couchbase Search Vector Index. The changes include restructuring folders, updating Jupyter notebooks, and modifying configuration files. My review focuses on improving the new LangChain RAG tutorial notebook by correcting error messages, removing unused code, and enhancing exception handling for better clarity and robustness. I've also pointed out a minor typo in a frontmatter file. Overall, the updates are a great improvement and align the tutorials with the latest services.

- Corrected the link to the original notebook to point to the updated path.
- Revised section headers to use consistent terminology, changing "Couchbase Vector Search Index" to "Couchbase Search Vector Index" for clarity.
- Revised references from "Couchbase Vector Search Index" to "Couchbase Search Vector Index" for consistency.
- Clarified the description of the search functionality to reflect the updated terminology.
Copy link
Contributor

@VirajAgarwal1 VirajAgarwal1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@nithishr nithishr merged commit a1a9b89 into main Dec 9, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants