Files
genai-toolbox/sdks/langchain/DEVELOPER.md
Anubhav Dhawan bf614ed28d doc(llamaindex-sdk): Improve the developer.md file to segregate install and test steps. (#105)
Mirrors change from #99 for LlamaIndex.

Also includes a minor change to wrap text.
2024-12-03 16:43:52 +00:00

915 B

Development

Below are the details to set up a development environment and run tests.

Install

  1. Clone the repository:
    git clone https://github.com/googleapis/genai-toolbox.git
    
  2. Navigate to the SDK directory:
    cd genai-toolbox/sdks/langchain
    
  3. Install the package in editable mode, so changes are reflected without reinstall:
    pip install -e .
    
  4. Make code changes and contribute to the SDK's development.

[!TIP] Using -e option allows you to make changes to the SDK code and have those changes reflected immediately without reinstalling the package.

Test

  1. Navigate to the SDK directory:

    cd genai-toolbox/sdks/langchain
    
  2. Install the SDK and test dependencies:

    pip install -e .[test]
    
  3. Run tests and/or contribute to the SDK's development.

    pytest