Skip to content

Add API Reference Docs #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Jun 19, 2025
Merged

Add API Reference Docs #15

merged 14 commits into from
Jun 19, 2025

Conversation

teetangh
Copy link
Contributor

@teetangh teetangh commented Apr 1, 2025

No description provided.

@teetangh teetangh self-assigned this Apr 1, 2025
Copy link

@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.

Hello @teetangh, 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!

Summary of Changes

This pull request introduces the necessary files to generate API documentation using Sphinx. It includes a Makefile and make.bat for building the documentation, a conf.py file to configure Sphinx, an index.rst file as the main documentation entry point, a langchain_couchbase.rst file to document the langchain_couchbase package, and a modules.rst file to list the modules.

Highlights

  • Sphinx Configuration: The pull request sets up Sphinx with the required configuration files, including conf.py, to generate API documentation for the langchain-couchbase project.
  • Documentation Structure: It establishes the basic structure for the documentation, including the main index, module listing, and package-specific documentation using reStructuredText.
  • Build Scripts: The pull request provides Makefile and make.bat scripts to simplify the documentation building process on both Linux/macOS and Windows environments.

Changelog

Click here to see the changelog
  • docs/Makefile
    • Added a Makefile to simplify Sphinx documentation builds.
    • Defines variables for Sphinx options, source directory, and build directory.
    • Includes a 'help' target and a catch-all target to route commands to Sphinx.
  • docs/make.bat
    • Added a make.bat file for building Sphinx documentation on Windows.
    • Checks for the presence of sphinx-build and provides guidance if it's not found.
    • Executes sphinx-build with the specified arguments.
  • docs/source/conf.py
    • Created a conf.py file to configure Sphinx.
    • Sets project information such as project name, copyright, author, and release version.
    • Configures extensions like autodoc, viewcode, and githubpages.
    • Specifies the HTML theme and static paths.
  • docs/source/index.rst
    • Created an index.rst file as the main entry point for the documentation.
    • Includes a table of contents and references to the index, module index, and search pages.
  • docs/source/langchain_couchbase.rst
    • Created a langchain_couchbase.rst file to document the langchain_couchbase package.
    • Uses automodule directives to automatically generate documentation for the package's modules, including cache, chat_message_histories, and vectorstores.
  • docs/source/modules.rst
    • Created a modules.rst file to list the modules in the project.
    • Uses a toctree directive to link to the langchain_couchbase module documentation.
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 in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

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 issue 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 is currently in preview and 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 to provide feedback.

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.


Sphinx arises, docs take flight,
Code's secrets bathed in light.
RST's embrace,
API's grace,
A clearer vision, shining bright.

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

@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 introduces Sphinx documentation generation for the langchain-couchbase project. It includes changes to the Makefile, a batch file for Windows, the Sphinx configuration file, and reStructuredText files to structure the documentation. Overall, the changes seem well-structured and aim to provide comprehensive API documentation.

Merge Readiness

The pull request appears to be well-structured and introduces necessary files for Sphinx documentation. I am unable to directly approve the pull request, and users should have others review and approve this code before merging. Based on my review, the pull request is ready to be merged, as there are no critical or high severity issues.

@teetangh teetangh added the documentation Improvements or additions to documentation label Apr 1, 2025
…on instructions, and a note on active development status.
…amline import statements, and ensure consistent formatting.
@nithishr
Copy link
Contributor

nithishr commented Apr 1, 2025

@teetangh Could you please look into why the build is failing? I get some invalid references running this locally as well for usage even without my changes.

… add usage documentation for Couchbase integration with LangChain
@teetangh
Copy link
Contributor Author

teetangh commented Apr 1, 2025

@nithishr fixed the conf file and also resolved the merge conflicts

…ation steps, include .qodo in .gitignore, and retrieve package version from pyproject.toml
@teetangh teetangh requested a review from nithishr April 4, 2025 08:10
@teetangh
Copy link
Contributor Author

@AayushTyagi1 this is the repo for api reference. We need to update it here as well

@AayushTyagi1
Copy link

@AayushTyagi1 this is the repo for api reference. We need to update it here as well

This has already been taken care of by Nithish

nithishr added 2 commits June 19, 2025 19:14
- Updated conf.py to remove unused html_theme_path.
- Enhanced index.rst to clarify the package's purpose and improve navigation.
- Expanded langchain_couchbase.rst to provide a detailed API reference and component overview.
- Revised modules.rst to align with the new API structure.
- Improved usage.rst with updated examples for vector store, caching, and chat message history, including connection handling and semantic caching details.
@nithishr nithishr changed the title Sphinx API refernce Github Actions Add API Reference Docs Jun 19, 2025
- Updated README.md to include links to official LangChain documentation and GitHub Pages for API reference.
- Revised conf.py to exclude test and script directories from documentation build.
- Clarified deprecation notice in langchain_couchbase.rst for CouchbaseVectorStore.
- Added titlesonly option in modules.rst for cleaner API reference navigation.
- Updated comments in cache.py to specify source of duplicated functions.
@nithishr nithishr merged commit 04694cd into main Jun 19, 2025
14 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants