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

[DRAFT] lamini provider and endpoint improvements #970

Draft
wants to merge 500 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
500 commits
Select commit Hold shift + click to select a range
1f7535c
Fix "the the" typo. (#551)
DavidKurokawa Nov 8, 2023
5514d90
readme-links-fix (#553)
joshreini1 Nov 9, 2023
8fb63d2
Automated File Generation from Docs Notebook Changes (#554)
github-actions[bot] Nov 9, 2023
2508cea
Josh/llama moved webpage reader (#557)
joshreini1 Nov 15, 2023
ff40d5a
remove colab_ prefixed notebooks from combine_nb script (#559)
joshreini1 Nov 15, 2023
ddb2841
OpenAI v1.x migraation + robust hasattr for instrumentation issues (#…
piotrm0 Nov 16, 2023
66a17c6
vertex quickstart (#563)
joshreini1 Nov 16, 2023
555ebad
add seed parameter (#560)
joshreini1 Nov 16, 2023
8f06579
Release 0.18.0 readiness (#564)
shayaks Nov 16, 2023
833d4c9
Releases/rc trulens eval 0.18.0 (#566)
shayaks Nov 16, 2023
41d5677
Fix colab links (#568)
shayaks Nov 16, 2023
e7b9fc4
Automated File Generation from Docs Notebook Changes (#567)
github-actions[bot] Nov 18, 2023
a50b0b4
Docs + Examples rewrite (#571)
joshreini1 Nov 20, 2023
a82bce6
Automated File Generation from Docs Notebook Changes (#573)
github-actions[bot] Nov 20, 2023
df3399e
add new quickstarts to nav (#574)
joshreini1 Nov 20, 2023
d57b0c8
Automated File Generation from Docs Notebook Changes (#576)
github-actions[bot] Nov 20, 2023
d316ae2
async updates/bugfixes (#569)
piotrm0 Nov 20, 2023
be622f2
fix leaderboard display for human feedback (#575)
joshreini1 Nov 20, 2023
189db47
fix(app selector): Fix missing . in app selectors for the timeline (#…
walnutdust Nov 20, 2023
54e3c5e
fix: [MLNN-1094] Fix lists in streamlit not being displayed correctly…
walnutdust Nov 21, 2023
099444b
higher is better key error fix (#581)
joshreini1 Nov 21, 2023
0f23b0e
Iterating on RAGs (#580)
joshreini1 Nov 21, 2023
e3094d3
Prep for release (#585)
shayaks Nov 23, 2023
1f2f9b6
Releases/rc trulens eval 0.18.1 (#587)
shayaks Nov 23, 2023
a87b9ba
Releases/rc trulens eval 0.18.1 (#588)
shayaks Nov 23, 2023
a69d39a
Releases/rc trulens eval 0.18.1 (#589)
shayaks Nov 23, 2023
45520be
Josh/fix readme links (#582)
joshreini1 Nov 27, 2023
88ee2b3
Merge generated docs and test files into main (#591)
github-actions[bot] Nov 27, 2023
fbf6710
unpin 2 reqs (#590)
piotrm0 Nov 27, 2023
e33f14b
serialize openai client (#595)
piotrm0 Nov 28, 2023
8d0a132
Fix helpfulness prompt (Issue #583) (#594)
joshreini1 Nov 29, 2023
a81438c
remove extra reset cell (#597)
joshreini1 Nov 29, 2023
56ee9b2
Josh/langchain prompt import, tag quickstart versions (#602)
joshreini1 Nov 29, 2023
2f67d65
Automated File Generation from Docs Notebook Changes (#603)
github-actions[bot] Nov 29, 2023
7ee48ab
Make CI pipeline run daily as well. (#599)
DavidKurokawa Nov 29, 2023
a971708
Add `quickstart.ipynb` and other notebooks to notebooks to test. (#601)
DavidKurokawa Nov 29, 2023
6b51f98
fix quickstart imports (#610)
joshreini1 Nov 30, 2023
2f99ef0
Automated File Generation from Docs Notebook Changes (#611)
github-actions[bot] Nov 30, 2023
efc61eb
first (#605)
piotrm0 Nov 30, 2023
ce20d2e
update notebook link to proper URL (#619)
isayahc Dec 1, 2023
602cdac
Add data to the embedding database. (#622)
NoahVl Dec 1, 2023
31efe7c
Josh/multimodal rag llama (#617)
joshreini1 Dec 1, 2023
9a9b215
Fix issue with groundtruth feedback function (#615)
shayaks Dec 1, 2023
872544c
Fix > character in prompt. (#623)
NoahVl Dec 1, 2023
ee1df3a
bedrock finetune experiment example (#618)
joshreini1 Dec 1, 2023
008ca25
move model comparison to use cases (expected location) (#614)
joshreini1 Dec 1, 2023
f04d915
change instantiation model_id -> model_engine (#612)
joshreini1 Dec 1, 2023
e82468d
Fix `PromptTemplates` import. (#604)
DavidKurokawa Dec 1, 2023
19210fd
Releases/rc trulens eval 0.18.2 (#624)
joshreini1 Dec 1, 2023
dc32754
test (#627)
piotrm0 Dec 3, 2023
faacc9f
fix: Escape unicode for the records table (#632)
walnutdust Dec 4, 2023
951bec3
added wrapper for dynamically generated functions in boto3 (#626)
piotrm0 Dec 5, 2023
6a41f2a
Update hugs.py (#633)
joshreini1 Dec 5, 2023
78868b5
Fix llama index agents and multimodal notebooks (#637)
shayaks Dec 5, 2023
9339c3c
Run groundedness smoke tests for 100 CNN articles (#634)
daniel-huang-1230 Dec 5, 2023
18bf0f4
Update langchain prompt based evals (#636)
joshreini1 Dec 5, 2023
a0b9e52
Migrate LiteLLM to v1 (#644)
joshreini1 Dec 6, 2023
0fa51c3
fix: initialization of AzureOpenAI (#640)
schmidtseb Dec 6, 2023
e72850c
updating az openai to use oepnai v1 api (#647)
daniel-huang-1230 Dec 7, 2023
fd3c94f
quickstart nits (#649)
joshreini1 Dec 7, 2023
21d3dcf
Releases/rc trulens eval 0.18.3 (#652)
joshreini1 Dec 7, 2023
97fbe56
use Union for python version lower than 3.10 (#654)
daniel-huang-1230 Dec 11, 2023
e4fbb43
fix feedback func names (#656)
daniel-huang-1230 Dec 11, 2023
7c7064b
required packages and imports cleanup (#663)
piotrm0 Dec 11, 2023
81e6521
Cleaning up OpenAI handling and adding user messages to OpenAI client…
piotrm0 Dec 11, 2023
d57a8e3
cast bfloat to float32 (#662)
coreyhu Dec 11, 2023
8a856c5
fix failing LLM import (#671)
coreyhu Dec 12, 2023
5cddd81
Josh/iterate rag installs (#666)
joshreini1 Dec 12, 2023
f29bdc9
basic langchain provider implementation (#664)
Nvillaluenga Dec 12, 2023
62c0cbd
change relative links to hardcoded links in docs (#657)
joshreini1 Dec 13, 2023
6289615
migration to pydantic v2 (#596)
piotrm0 Dec 13, 2023
08d2b1b
db migration update (#679)
piotrm0 Dec 15, 2023
7a29b53
Releases/rc trulens eval 0.19.0 (#680)
joshreini1 Dec 15, 2023
190ab72
Josh/release nits (#681)
joshreini1 Dec 15, 2023
6630bd0
Automated File Generation from Docs Notebook Changes (#682)
github-actions[bot] Dec 15, 2023
137dcee
version bump 0.19.1 (#683)
joshreini1 Dec 15, 2023
e7f74d4
Automated File Generation from Docs Notebook Changes (#684)
github-actions[bot] Dec 15, 2023
9b0e136
batch of small user asks (#686)
piotrm0 Dec 18, 2023
cb40418
better messages for optional imports (#688)
piotrm0 Dec 18, 2023
05e1a46
extract query_str from query bundle as main input for llama_index app…
piotrm0 Dec 18, 2023
dc71d58
Expand langchain instrumentation for RAGs (#691)
joshreini1 Dec 18, 2023
564ca89
releases/rc-trulens-eval-0.19.2 (#694)
joshreini1 Dec 18, 2023
03a5b14
Automated File Generation from Docs Notebook Changes (#695)
github-actions[bot] Dec 18, 2023
165d7f7
Gemini Example (#697)
joshreini1 Dec 19, 2023
02ca4ec
fix colab link (#699)
joshreini1 Dec 19, 2023
71bf1d4
add aliases for selectors for main method args and main method return…
piotrm0 Dec 19, 2023
159c0be
exposed AzureOpenAI provider (#698)
epinzur Dec 20, 2023
91bb9e0
ollama quickstart (#703)
joshreini1 Dec 20, 2023
5fa4b82
allow debug timeout to be adjusted (#713)
piotrm0 Dec 21, 2023
332858b
import llama only if needed (#714)
joshreini1 Dec 22, 2023
426fa70
fix dashboard starts for colab (#721)
piotrm0 Dec 22, 2023
37772e2
savE (#719)
walnutdust Dec 22, 2023
c26988c
first (#720)
piotrm0 Dec 22, 2023
ab57de9
Add shortcut to select_context() (#706)
joshreini1 Dec 22, 2023
a791a96
add optional (#723)
piotrm0 Dec 22, 2023
7e024c3
pydantic2 deprecation fix to model config (#724)
piotrm0 Dec 23, 2023
f2eefbd
Fix correctness prompt (#725)
shayaks Dec 23, 2023
0c0b484
Releases/rc trulens eval 0.20.0 (#727)
shayaks Dec 23, 2023
27b664c
Releases/rc trulens eval 0.20.0 (#729)
shayaks Dec 23, 2023
eff8562
debug migration issue in release pipeline (#726)
piotrm0 Dec 27, 2023
d7290be
azureopenai fixes (#735)
piotrm0 Jan 2, 2024
5c84ecc
fix typo (#739)
piotrm0 Jan 2, 2024
b8d9303
Update extract_score_and_reasons to work across providers (#732)
joshreini1 Jan 2, 2024
3b3b969
Update instrumentation docs (#737)
joshreini1 Jan 3, 2024
e2b5ad1
add instructions for installing from github (#740)
piotrm0 Jan 3, 2024
7e2d753
Automated File Generation from Docs Notebook Changes (#744)
github-actions[bot] Jan 4, 2024
1b7c516
adjust optional llama (#745)
piotrm0 Jan 4, 2024
c28c0af
adjust human feedback notebook (#746)
piotrm0 Jan 4, 2024
caa9205
Automated File Generation from Docs Notebook Changes (#749)
github-actions[bot] Jan 4, 2024
7343252
WithClassInfo bugfixes (#741)
piotrm0 Jan 4, 2024
b9a2fc9
update notebooks to test (#753)
piotrm0 Jan 4, 2024
98d9623
langchain thread executor rehack (#755)
piotrm0 Jan 4, 2024
7bdf01f
Fix subscripted generics typechecking for Python<3.10 (#754)
coreyhu Jan 4, 2024
feabdba
check for langchain legacy (#757)
piotrm0 Jan 4, 2024
02b11f0
pass bedrock provider to ground truth eval (#743)
joshreini1 Jan 4, 2024
3d58eee
convert structures to str in feedback result tables (#758)
piotrm0 Jan 4, 2024
4989a14
langchain provider fix (#759)
piotrm0 Jan 4, 2024
fb2f424
Releases/rc trulens eval 0.20.1 (#761)
joshreini1 Jan 5, 2024
408b838
Automated File Generation from Docs Notebook Changes (#762)
github-actions[bot] Jan 5, 2024
2488e64
add missing langchain provider docs (#760)
joshreini1 Jan 5, 2024
d511973
include excluded pydantic fields in json dumps (#768)
piotrm0 Jan 8, 2024
4f73448
changed the default model id to titan lite (#774)
rajib76 Jan 8, 2024
3fef759
documentation and fix to weakref usage (#771)
piotrm0 Jan 8, 2024
58649e2
more optional annotations and some bugfixes (#770)
piotrm0 Jan 8, 2024
966a716
Releases/rc trulens eval 0.20.2 (#780)
joshreini1 Jan 9, 2024
5146001
Automated File Generation from Docs Notebook Changes (#781)
github-actions[bot] Jan 9, 2024
724eee5
removes summarize_provider from groundedness variable (#785)
ingridstevens Jan 9, 2024
e36b997
more fixes to utility imports (#786)
piotrm0 Jan 9, 2024
c16b700
better prompt for GroundTruth feedback function + pydantic v2 valudat…
daniel-huang-1230 Jan 9, 2024
748400d
update langchain_agents notebook (#778)
piotrm0 Jan 10, 2024
ba83563
Josh/aws updates (#788)
joshreini1 Jan 10, 2024
af81e76
Fix missing f-strings (#790)
andrewisplinghoff Jan 10, 2024
845dcaa
optionals readme (#787)
piotrm0 Jan 10, 2024
def8172
TruLens-Eval v0.20.3 (#791)
joshreini1 Jan 10, 2024
ddd0150
Automated File Generation from Docs Notebook Changes (#792)
github-actions[bot] Jan 11, 2024
9db4b0c
Minor fixes- changing g"generation" to "generated_text" and updating …
vivekgangasani Jan 12, 2024
91569a4
fix precision error (#798)
joshreini1 Jan 16, 2024
e420568
Groundedness refactor (#801)
joshreini1 Jan 16, 2024
921b8c8
Evaluations Page Nits (#797)
joshreini1 Jan 22, 2024
12b71c9
deduplicating sync/async code (#793)
piotrm0 Jan 22, 2024
9bc29ea
error on deprecated passthrough methods (#803)
piotrm0 Jan 23, 2024
f6e61c6
virtual models for logging and evaluating existing data (#806)
piotrm0 Jan 23, 2024
194acd8
oopenai -> openai (#815)
joshreini1 Jan 23, 2024
9eb94ad
Fix summarization, rename to comprehensiveness (#816)
joshreini1 Jan 23, 2024
26fe140
deprecate more things (#817)
piotrm0 Jan 24, 2024
ac7d235
Generate Test Cases (#705)
joshreini1 Jan 24, 2024
ac1dc54
Refactor Evaluation Docs (#823)
joshreini1 Jan 25, 2024
9a34cae
Make OpenAI Optional (#827)
joshreini1 Jan 26, 2024
159b8dd
enable async unit tests (#831)
piotrm0 Jan 26, 2024
a303230
Releases/rc trulens eval 0.21.0 (#830)
joshreini1 Jan 29, 2024
2ad0670
Automated File Generation from Docs Notebook Changes (#837)
github-actions[bot] Jan 29, 2024
1cc234a
fix ellipsis issue (#840)
piotrm0 Jan 31, 2024
42a3520
factor out common error from app types (#832)
piotrm0 Jan 31, 2024
4ed5706
Docs refactor (#829)
joshreini1 Jan 31, 2024
43af1be
Automated File Generation from Docs Notebook Changes (#842)
github-actions[bot] Jan 31, 2024
c18afbc
few more ellipses (#843)
piotrm0 Feb 1, 2024
47983b4
update azure example, also show provider extension (#847)
joshreini1 Feb 2, 2024
2aea0b8
add testing with older python versions (#841)
piotrm0 Feb 2, 2024
d6682bd
Bump vite in /trulens_eval/trulens_eval/react_components/record_viewe…
dependabot[bot] Feb 2, 2024
5e2421c
Integration Testing (#838)
joshreini1 Feb 2, 2024
7eea89d
TruLens-Eval v0.22.0 release (#851)
joshreini1 Feb 3, 2024
5e55846
Automated File Generation from Docs Notebook Changes (#853)
github-actions[bot] Feb 5, 2024
47f806c
init cleanup (#852)
piotrm0 Feb 5, 2024
29d93a8
Randomly run evals based on record_id hash (#850)
joshreini1 Feb 6, 2024
9f917ed
fix typo (#857)
joshreini1 Feb 6, 2024
99d747c
Fix typo and adjust some debug printouts. (#866)
piotrm0 Feb 7, 2024
ace1f5b
non-threaded pacer (#874)
piotrm0 Feb 8, 2024
703cdaf
better deferred evaluation (#807)
piotrm0 Feb 8, 2024
2e9c9cf
Automated File Generation from Docs Notebook Changes (#876)
github-actions[bot] Feb 8, 2024
b2a979a
streamlit experimental query params -> query params (#860)
joshreini1 Feb 8, 2024
603972d
deferred progress status (#879)
piotrm0 Feb 8, 2024
f513157
Allow different schemas for Bedrock provider calls (#878)
joshreini1 Feb 8, 2024
326d535
pull from other branch (#881)
piotrm0 Feb 9, 2024
c044a88
fix st.query_params (#883)
joshreini1 Feb 9, 2024
3a9d0d4
TruLens-Eval v0.22.1 (#882)
joshreini1 Feb 9, 2024
9afa162
metadata datatype validation fix (#888)
aaronvarghese Feb 10, 2024
2198b3a
ensure agreement prompt outputs integer score as the last part of the…
daniel-huang-1230 Feb 12, 2024
8758d7c
pin llama-index temp (#893)
joshreini1 Feb 13, 2024
6b70a12
first (#892)
piotrm0 Feb 13, 2024
848898e
bedrock provider branching fix (#887)
joshreini1 Feb 13, 2024
0d7035a
TruLens-Eval 0.22.2 (#894)
joshreini1 Feb 13, 2024
fe3d79a
cleanup (#880)
piotrm0 Feb 14, 2024
05e1d5e
fix for in-memory sqlite params (#904)
piotrm0 Feb 15, 2024
a72aca1
Fix use case colab links (#900)
joshreini1 Feb 15, 2024
f5f3b1d
few site-related fixes to recently merged pr (#903)
piotrm0 Feb 15, 2024
895d0f6
comprehensiveness updates (#901)
joshreini1 Feb 15, 2024
3c31e71
model rebuilds as necessary (#905)
piotrm0 Feb 15, 2024
28fbf60
Deeper Instrumentation for Hybrid Retrievers + examples (#873)
joshreini1 Feb 16, 2024
5b3e8fc
various documentation fixes (#907)
piotrm0 Feb 16, 2024
deced20
Releases/rc trulens eval 0.23.0 (#908)
joshreini1 Feb 16, 2024
b141279
cost tracking tests and litellm cost tracking (#910)
piotrm0 Feb 21, 2024
df9adac
check packages on init (#917)
piotrm0 Feb 21, 2024
9bc058a
Increase provider test coverage to Huggingface feedback provider (#919)
venkatkakoju Feb 22, 2024
0569396
upgrade Llama-Index integration to 0.10 (#891)
joshreini1 Feb 22, 2024
da29a66
Automated File Generation from Docs Notebook Changes (#922)
github-actions[bot] Feb 22, 2024
5f98b00
Update issue templates (#923)
joshreini1 Feb 22, 2024
3699ce5
async handling adjustments (#918)
piotrm0 Feb 23, 2024
3c2fe22
update instrumentation notebooks and related nits (#931)
piotrm0 Feb 23, 2024
60d4206
TruLens-Eval 0.24.0 (#927)
joshreini1 Feb 23, 2024
c959a92
Update selecting_components.md (#926)
joshreini1 Feb 23, 2024
a91e294
bump patchlevel (#933)
piotrm0 Feb 23, 2024
979295b
makefile targets for release process (#934)
piotrm0 Feb 23, 2024
c147bbc
Better selection of main input/output (#938)
joshreini1 Feb 28, 2024
9538049
Documentation structure and heading pages (#945)
piotrm0 Mar 1, 2024
8826a03
update tru virtual docs (#949)
piotrm0 Mar 4, 2024
1f2a828
[MLNN-1217] Improve regex matching for structured output extraction f…
daniel-huang-1230 Mar 5, 2024
a8d473e
instrumentation notebook updates and fixes (#953)
piotrm0 Mar 6, 2024
6dfd13d
add nemo guardrails integrations (#824)
piotrm0 Mar 6, 2024
491bb10
Fix release test pipeline (#962)
joshreini1 Mar 6, 2024
f008169
extract response attr if app returns object with that attr (#865)
joshreini1 Mar 6, 2024
d896a4e
fix links in docs (#963)
piotrm0 Mar 6, 2024
bdc883f
Automated File Generation from Docs Notebook Changes (#964)
github-actions[bot] Mar 6, 2024
dc1c5d6
add back all_tolls (#965)
joshreini1 Mar 7, 2024
80d2500
version bump (#966)
joshreini1 Mar 7, 2024
062ade8
canopy quickstart (#925)
joshreini1 Mar 7, 2024
d4e0fdd
add missing virtual app setup and redirects from old core concept lin…
joshreini1 Mar 7, 2024
0e2f890
fix links in docs
piotrm0 Mar 8, 2024
d371af5
fix links in docs (#968)
piotrm0 Mar 8, 2024
8e8bdf8
lamini endpoint prototype
piotrm0 Mar 8, 2024
57a75da
remove debug statements
piotrm0 Mar 8, 2024
521e667
addressing pylint issues
piotrm0 Mar 8, 2024
2d15448
Merge branch 'piotrm/fix_redirected_links' into piotrm/lamini_provider
piotrm0 Mar 8, 2024
4f4b77d
work
piotrm0 Mar 8, 2024
9654f2b
Update typo in pip install on azure_openai.ipynb (#973)
ingridstevens Mar 8, 2024
dafabc6
readd redirects (#972)
piotrm0 Mar 8, 2024
f6984f1
Automated File Generation from Docs Notebook Changes (#975)
github-actions[bot] Mar 8, 2024
c0a0cf3
fix colab link - langchain ensemble notebook (#980)
joshreini1 Mar 8, 2024
1d0c0fc
allow deserialization for faiss example (#978)
joshreini1 Mar 8, 2024
0a2e5b5
fix truchain (#974)
joshreini1 Mar 8, 2024
f77e7ee
patch (#982)
joshreini1 Mar 8, 2024
1c2a646
QS Relevance -> Context Relevance (#977)
joshreini1 Mar 8, 2024
15a19f7
Automated File Generation from Docs Notebook Changes (#983)
github-actions[bot] Mar 9, 2024
b25575e
version bump (#981)
joshreini1 Mar 9, 2024
40f78bb
existing data quickstart (#976)
joshreini1 Mar 9, 2024
1058a5d
Adds Azure Quickstart for LangChain (#984)
ingridstevens Mar 9, 2024
4398e5c
fix more docs links (#987)
piotrm0 Mar 11, 2024
d92e79f
update (#990)
piotrm0 Mar 12, 2024
5927f66
verify feedback selectors on recorder init (#961)
piotrm0 Mar 12, 2024
759d035
relax llama version (#985)
joshreini1 Mar 12, 2024
83223c4
Allow VirtualRecords to have multiple calls to the same component. (#…
piotrm0 Mar 12, 2024
76e28ff
Fix broken colab links (#994)
joshreini1 Mar 13, 2024
c5353c4
docs updates/additions (#996)
piotrm0 Mar 13, 2024
bb11c2d
add install redirect in docs (#995)
joshreini1 Mar 13, 2024
5c1d2ff
Update feedback docs (#999)
joshreini1 Mar 14, 2024
0c6ba29
doc usage formatting (#1002)
piotrm0 Mar 15, 2024
eaa10f2
Allow Feedback.run with args even if they had selectors specified. (#…
piotrm0 Mar 15, 2024
433c04f
Merge remote-tracking branch 'origin/main' into piotrm/lamini_provider
piotrm0 Mar 15, 2024
2457e18
fixing
piotrm0 Mar 15, 2024
a59e5a8
fixing
piotrm0 Mar 15, 2024
fc153a2
class for storing prompt and data types in one
piotrm0 Mar 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
142 changes: 119 additions & 23 deletions .azure_pipelines/ci-eval-pr.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# This a definition for azure pipelines, not github pipelines. There are
# differences between these systems.

pr:
branches:
include:
Expand All @@ -6,47 +9,140 @@ pr:
paths:
include:
- trulens_eval
- docs/trulens_eval/*.ipynb


jobs:
- job: PRBranchProtect
- job: PRBranchProtect # name seems to be important but cannot figure out why
pool:
vmImage: "ubuntu-latest"
vmImage: ubuntu-latest
timeoutInMinutes: 30

strategy:
matrix:
default:
condaEnvFileSuffix: "trulens-llm"
default: # name is important
python-version: 3.11
tests-folder: tests/unit
py308-static:
python-version: 3.8
tests-folder: tests/unit/static
py309-static:
python-version: 3.9
tests-folder: tests/unit/static
py310-static:
python-version: 3.10
tests-folder: tests/unit/static

steps:
- checkout: self
clean: true
- bash: echo "##vso[task.prependpath]$CONDA/bin"
displayName: Add conda to PATH

- bash: |
echo "##vso[task.prependpath]$CONDA/bin"

set -e
conda create -y --quiet -n $(condaEnvFileSuffix) python=3
conda create -y --quiet \
-n $(python-version) \
python=$(python-version)

conda init bash
displayName: Create Anaconda environment
- bash: |
set -e
source activate $(condaEnvFileSuffix)
which python
displayName: Which Python

displayName: Setup conda

- bash: |
set -e
source activate $(condaEnvFileSuffix)
pip install yapf==0.32.0
./format.sh
displayName: Format Code
- bash: |
num_changed_files=`git ls-files --others -m --exclude-standard | wc -l`
source activate $(python-version)

pip install yapf==0.32.0 --verbose
pip install isort==5.10.1 --verbose

yapf --version
isort --vn

./format.sh --eval

num_changed_files=`git ls-files --others -m --exclude-standard ./trulens_eval | wc -l`
if [ $num_changed_files -ne 0 ]; then
echo "The following files have changed after running format.sh. Please format your code and update the PR."
git ls-files --others -m --exclude-standard
git ls-files --others -m --exclude-standard ./trulens_eval
echo "\n\nOutputting git diff for checked in files.\n"
git diff
fi
displayName: NoDiffCheck
condition: eq(variables['python-version'], 3.11) # only run format check with latest python version
displayName: Format diffs

- bash: |
set -e
source activate $(python-version)

cd ./trulens_eval
pip install -e . --verbose

displayName: Install trulens

- bash: |
set -e
source activate $(python-version)

pip install --verbose \
pytest==7.0.1 pytest-subtests pytest-azurepipelines

displayName: Install testing packages

- bash: |
set -e
source activate $(python-version)

python --version
pip --version
pip list --verbose

displayName: Describe python env

- bash: |
set -e
source activate $(python-version)

cd ./trulens_eval
python -m pytest --test-run-title="Required $(python-version) unit tests" $(tests-folder)

displayName: Unit tests with required packages

- bash: |
set -e
source activate $(python-version)

cd ./trulens_eval

# Once we start running notebooks in these tests, might have to do this again:
# pip install ipykernel
# python -m ipykernel install --user \
# --name $(python-version) \
# --display-name $(python-version)

pip install --verbose -r trulens_eval/requirements.optional.txt

python --version
pip --version
pip list --verbose

displayName: Install optional packages

- bash: |
set -e
source activate $(python-version)

cd ./trulens_eval

python -m pytest --test-run-title="Optional $(python-version) unit tests" $(tests-folder)
env:
# enables optional tests, see tests/unit/test.py
TEST_OPTIONAL: true

# tests make use of various APIs:
OPENAI_API_KEY: $(OPENAI_API_KEY)
HUGGINGFACE_API_KEY: $(HUGGINGFACE_API_KEY)
PINECONE_API_KEY: $(PINECONE_API_KEY)
PINECONE_ENV: $(PINECONE_ENV)
HUGGINGFACEHUB_API_TOKEN: $(HUGGINGFACEHUB_API_TOKEN)

displayName: Unit tests with optional packages

72 changes: 57 additions & 15 deletions .azure_pipelines/ci-eval.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,76 +16,118 @@ pr:
- trulens_eval
- docs/trulens_eval/*.ipynb

schedules:
- cron: "0 0 * * *"
displayName: Daily midnight build
branches:
include:
- main

jobs:
- job: quickstartTests
- job: ReleaseTests
pool:
vmImage: "ubuntu-latest"
timeoutInMinutes: 30

strategy:
matrix:
docs_notebooks:
latest:
pythonVersion: "3.11"
condaEnvFileSuffix: "trulens-llm"
requirementsFile: "tests/docs_notebooks/requirements.txt"
testSubdirectory: "tests/docs_notebooks"


steps:
- checkout: self
clean: true

- bash: echo "##vso[task.prependpath]$CONDA/bin"
displayName: Add conda to PATH

- bash: |
set -e
conda create -y --quiet -n $(condaEnvFileSuffix) python=3
conda create -y --quiet -n $(condaEnvFileSuffix) python=3.11
conda init bash
displayName: Create Anaconda environment

- bash: |
set -e
source activate $(condaEnvFileSuffix)
which python
python --version
displayName: Which Python

- bash: |
set -e
source activate $(condaEnvFileSuffix)
cd ./trulens_eval
pip install -e .
pip install -r $(requirementsFile)
pip install -r tests/docs_notebooks/requirements.txt
pip install yapf==0.32.0
pip install isort==5.10.1
pip install ipykernel
python -m ipykernel install --user --name $(condaEnvFileSuffix) --display-name $(condaEnvFileSuffix)
displayName: Install pip package

- bash: |
set -e
source activate $(condaEnvFileSuffix)
./format.sh
echo Using $(yapf --version) isort $(isort --vn)
./format.sh --eval
displayName: Format Code

- bash: |
num_changed_files=`git ls-files --others -m --exclude-standard | wc -l`
num_changed_files=`git ls-files --others -m --exclude-standard ./trulens_eval | wc -l`
if [ $num_changed_files -ne 0 ]; then
echo "The following files have changed after running format.sh. Please format your code and update the PR."
git ls-files --others -m --exclude-standard
git ls-files --others -m --exclude-standard ./trulens_eval
echo "\n\nOutputting git diff for checked in files.\n"
git diff
fi
displayName: NoDiffCheck

- bash: |
source activate $(condaEnvFileSuffix)
cd ./docs/trulens_eval
pip install jupyter
pip install nbmerge
../../.github/workflows/combine_nb_to_docs_testing.sh
displayName: Run combine docs for testing

- bash: |
source activate $(condaEnvFileSuffix)
pip install pytest==7.0.1 pytest-azurepipelines langchain>=0.0.170 llama_index>=0.6.24
pip install docarray hnswlib
echo '::group::piplist'

cd ./trulens_eval
pip install pytest==7.0.1 pytest-azurepipelines
pip install -r trulens_eval/requirements.optional.txt
displayName: Install optional deps

- bash: |
source activate $(condaEnvFileSuffix)
echo "$(python --version)"
echo "$(pip list)"
echo '::endgroup::'
displayName: Pip list

- bash: |
source activate $(condaEnvFileSuffix)
cd ./trulens_eval
python -m pytest $(testSubdirectory)
displayName: Run unit tests

python -m pytest tests/e2e

displayName: Run e2e tests
env:
OPENAI_API_KEY: $(OPENAI_API_KEY)
HUGGINGFACE_API_KEY: $(HUGGINGFACE_API_KEY)
PINECONE_API_KEY: $(PINECONE_API_KEY)
PINECONE_ENV: $(PINECONE_ENV)
HUGGINGFACEHUB_API_TOKEN: $(HUGGINGFACEHUB_API_TOKEN)

- bash: |
source activate $(condaEnvFileSuffix)
cd ./trulens_eval

python -m pytest tests/docs_notebooks

displayName: Run notebook tests
env:
OPENAI_API_KEY: $(OPENAI_API_KEY)
HUGGINGFACE_API_KEY: $(HUGGINGFACE_API_KEY)
Expand Down
32 changes: 17 additions & 15 deletions .azure_pipelines/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,33 +22,33 @@ jobs:

strategy:
matrix:
py37_tf1_keras:
condaEnvFileSuffix: "python37"
py38_tf1_keras:
condaEnvFileSuffix: "python38"
requirementsFile: "tests/keras/requirements_tfv1.txt"
testSubdirectory: "tests/keras"

py37_tf1_tf_keras:
condaEnvFileSuffix: "python37"
py38_tf1_tf_keras:
condaEnvFileSuffix: "python38"
requirementsFile: "tests/tf_keras/requirements_tfv1.txt"
testSubdirectory: "tests/tf_keras"

py37_pytorch:
condaEnvFileSuffix: "python37"
py38_pytorch:
condaEnvFileSuffix: "python38"
requirementsFile: "tests/pytorch/requirements.txt"
testSubdirectory: "tests/pytorch"

py37_tf1:
condaEnvFileSuffix: "python37"
py38_tf1:
condaEnvFileSuffix: "python38"
requirementsFile: "tests/tf/requirements.txt"
testSubdirectory: "tests/tf"

py37_tf2:
condaEnvFileSuffix: "python37"
py38_tf2:
condaEnvFileSuffix: "python38"
requirementsFile: "tests/tf2/requirements.txt"
testSubdirectory: "tests/tf2"

py37_tf2_non_eager:
condaEnvFileSuffix: "python37"
py38_tf2_non_eager:
condaEnvFileSuffix: "python38"
requirementsFile: "tests/tf2/requirements.txt"
testSubdirectory: "tests/tf2_non_eager"

Expand Down Expand Up @@ -79,6 +79,7 @@ jobs:
set -e
source activate $(condaEnvFileSuffix)
which python
python --version
displayName: Which Python
- bash: |
set -e
Expand All @@ -92,13 +93,14 @@ jobs:
- bash: |
set -e
source activate $(condaEnvFileSuffix)
./format.sh
echo Using $(yapf --version) isort $(isort --vn)
./format.sh --explain
displayName: Format Code
- bash: |
num_changed_files=`git ls-files --others -m --exclude-standard | wc -l`
num_changed_files=`git ls-files --others -m --exclude-standard ./trulens_explain | wc -l`
if [ $num_changed_files -ne 0 ]; then
echo "The following files have changed after running format.sh. Please format your code and update the PR."
git ls-files --others -m --exclude-standard
git ls-files --others -m --exclude-standard ./trulens_explain
echo "\n\nOutputting git diff for checked in files.\n"
git diff
fi
Expand Down
Loading
Loading