Skip to content
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

add llamaindex/langchain conda build recipes #1767

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

sfc-gh-chu
Copy link
Contributor

@sfc-gh-chu sfc-gh-chu commented Jan 30, 2025

Description

Adds conda build recipes for llamaindex + langchain instrumentation

Other details good to know for developers

Please include any other details of this change useful for TruLens developers.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to
    not work as expected)
  • New Tests
  • This change includes re-generated golden test results
  • This change requires a documentation update

Important

Add conda build recipes for langchain and llamaindex with specified dependencies and build/test configurations.

  • Conda Build Recipes:
    • Add meta.yaml for langchain in src/apps/langchain.
    • Add meta.yaml for llamaindex in src/apps/llamaindex.
  • Dependencies:
    • langchain requires trulens-core, langchain, langchain-core, and pydantic.
    • llamaindex requires trulens-core, trulens-apps-langchain, pydantic, llama-index, and tiktoken.
  • Build and Test:
    • Both recipes use pip install for building and pip check for testing.
    • Specify Python version >=3.9,<3.12 and poetry-core <2.0.0 for host requirements.

This description was created by Ellipsis for e1c4637. It will automatically update as commits are pushed.

@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Jan 30, 2025
- trulens-core >=1.0.0,<2.0.0
- trulens-apps-langchain >=1.0.0,<2.0.0
- pydantic >=2.4.2
- llama-index >=0.8.0
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@sfc-gh-dkurokawa fyi this is the latest version of llama-index on the internal channel, but breaks several imports in trulens-apps-llamaindex

Copy link
Contributor

Choose a reason for hiding this comment

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

oh wow. In that case I guess it's just unuseable?

- trulens-core >=1.0.0,<2.0.0
- trulens-apps-langchain >=1.0.0,<2.0.0
- pydantic >=2.4.2
- llama-index >=0.8.0
Copy link
Contributor

Choose a reason for hiding this comment

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

oh wow. In that case I guess it's just unuseable?

version: {{ version }}

source:
# Replace url and sha256 with below line to test build locally with `conda build . -c https://conda.anaconda.org/sfe1ed40/``
Copy link
Contributor

Choose a reason for hiding this comment

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

might want to get rid of these comments on this file and the next one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants