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
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions src/apps/langchain/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{% set name = "trulens-apps-langchain" %}
{% set version = "1.3.3" %}

package:
name: {{ name|lower }}
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.

# path: .
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name.replace('-', '_') }}-{{ version }}.tar.gz
# Get SHA256 from https://pypi.org/project/trulens-apps-langchain/#files
sha256: 509cbef9965145e730d9d5803ac45fb8b3da172c8314c954f8b84591156b9865

build:
noarch: python
script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation
number: 0

requirements:
host:
- python >=3.9,<3.12
- poetry-core <2.0.0
- pip
run:
- python >=3.9,<3.12
- trulens-core >=1.0.0,<2.0.0
- langchain >=0.2.10
- langchain-core >=0.2.0
- pydantic >=2.4.2

test:
imports:
- trulens.apps.langchain
commands:
- pip check
requires:
- pip

about:
home: https://trulens.org/
summary: Library to systematically track and evaluate LLM based applications.
license: MIT

extra:
recipe-maintainers:
- sfc-gh-srudenko
- sfc-gh-chu
49 changes: 49 additions & 0 deletions src/apps/llamaindex/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{% set name = "trulens-apps-llamaindex" %}
{% set version = "1.3.3" %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
# Replace url and sha256 with below line to test build locally with `conda build . -c https://conda.anaconda.org/sfe1ed40/``
# path: .
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name.replace('-', '_') }}-{{ version }}.tar.gz
# Get SHA256 from https://pypi.org/project/trulens-apps-llamaindex/#files
sha256: c78189e709d2efa4b28c58dc044c38f306ef12849ed288e254120f269a2cc79a

build:
noarch: python
script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation
number: 0

requirements:
host:
- python >=3.9,<3.12
- poetry-core <2.0.0
- pip
run:
- python >=3.9,<3.12
- 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?

- tiktoken >=0.3.3

test:
imports:
- trulens.apps.llamaindex
commands:
- pip check
requires:
- pip

about:
home: https://trulens.org/
summary: Library to systematically track and evaluate LLM based applications.
license: MIT

extra:
recipe-maintainers:
- sfc-gh-srudenko
- sfc-gh-chu