Skip to content

DA-924: Mistral AI Smolagents and Pydantic#71

Merged
AayushTyagi1 merged 60 commits into
couchbase-examples:mainfrom
couchbaselabs:main
Nov 7, 2025
Merged

DA-924: Mistral AI Smolagents and Pydantic#71
AayushTyagi1 merged 60 commits into
couchbase-examples:mainfrom
couchbaselabs:main

Conversation

@AayushTyagi1

@AayushTyagi1 AayushTyagi1 commented Nov 7, 2025

Copy link
Copy Markdown
Contributor

Smolagents
Pydantic
Mistral AI added

Updated 3 Tutorials

* DA-1075: Modified: Added FTS in folder

* Added env and frontmatter

* DA-1075 Added Tutorial for Pydantic AI

* Frontmatter Modified and altenative tutorial lin put

* Alt index in markdown

* Add Description and Change Score to Distance

* DA-1075 Pydantic AI Tutorial

* Final Review Pydantic AI

* DA-1075: Modified: Removed Caching
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @AayushTyagi1, 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 enhances the vector search tutorials for Mistral AI, PydanticAI, and Smolagents by introducing comprehensive examples and documentation for Couchbase's Global Secondary Index (GSI). This refactoring provides users with clearer guidance on implementing high-performance vector search, contrasting it with the existing Full-Text Search (FTS) methods, and offering detailed insights into GSI's benefits and configuration for scalable AI applications.

Highlights

  • Tutorial Restructuring: The existing Mistral AI, PydanticAI, and Smolagents tutorials have been reorganized into 'fts/' (Full-Text Search) and new 'gsi/' (Global Secondary Index) subdirectories to clearly separate different vector search implementations.
  • GSI Vector Search Integration: New tutorials and associated files have been added for Mistral AI, PydanticAI, and Smolagents to demonstrate and utilize Couchbase's Global Secondary Index (GSI) for optimized vector search operations.
  • Documentation Updates: Frontmatter files ('frontmatter.md') for both FTS and GSI versions have been updated with specific titles, paths, and descriptions to clearly distinguish between the two vector search approaches and their benefits.
  • Environment Configuration: New '.env.sample' files are introduced in the 'gsi/' directories to provide specific environment variable configurations required for the GSI-based examples.
  • Notebook Enhancements: Jupyter notebooks ('.ipynb') have been updated with introductory text linking to alternative GSI/FTS tutorials, and minor Python environment details (version, kernel name) were adjusted for consistency.
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.

@AayushTyagi1 AayushTyagi1 requested a review from Copilot November 7, 2025 11:42

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request introduces comprehensive tutorials for integrating Mistral AI, smolagents, and PydanticAI with Couchbase's vector search capabilities, supporting both Full-Text Search (FTS) and Global Secondary Index (GSI) implementations.

Key Changes:

  • Added tutorials for smolagents and PydanticAI agent frameworks with Couchbase RAG systems using GSI and FTS indexes
  • Introduced Mistral AI integration examples demonstrating embedding generation and vector search with both GSI and FTS
  • Updated existing FTS tutorials with cross-references to new GSI alternatives

Reviewed Changes

Copilot reviewed 16 out of 21 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
smolagents/gsi/* New GSI-based RAG tutorial using smolagents framework with performance comparisons
smolagents/fts/* Updated FTS tutorial with reference to GSI alternative
pydantic_ai/gsi/* New GSI-based RAG tutorial using PydanticAI with performance analysis
pydantic_ai/fts/* Updated FTS tutorial with cross-reference to GSI version
mistralai/gsi/* New Mistral AI integration tutorial using GSI indexes
mistralai/fts/* Updated Mistral AI FTS tutorial with GSI alternative reference

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread smolagents/fts/RAG_with_Couchbase_and_SmolAgents.ipynb Outdated
Comment thread pydantic_ai/fts/RAG_with_Couchbase_and_PydanticAI.ipynb Outdated
Comment thread mistralai/gsi/mistralai.ipynb Outdated
Comment thread mistralai/gsi/mistralai.ipynb Outdated
Comment thread mistralai/fts/frontmatter.md Outdated
AayushTyagi1 and others added 5 commits November 7, 2025 17:14
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

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

Copy link
Copy Markdown
Contributor

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 introduces new tutorials for integrating Mistral AI, PydanticAI, and Smolagents with Couchbase, leveraging both Full-Text Search (FTS) and Global Secondary Index (GSI) for vector search. The changes involve renaming existing FTS-based tutorial files and creating new GSI-based versions, along with corresponding .env.sample and frontmatter.md files. The new GSI tutorials provide detailed explanations and performance comparisons, which is a valuable addition. There are a few minor issues related to file formatting and duplicated tags that should be addressed for consistency and clarity.

@AayushTyagi1 AayushTyagi1 changed the title Mistral AI Smolagents and Pydantic DA-924: Mistral AI Smolagents and Pydantic Nov 7, 2025
@AayushTyagi1 AayushTyagi1 merged commit d9ef31b into couchbase-examples:main Nov 7, 2025
1 of 7 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