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

Simple Dashboard Launcher UI (To launch old dashboards) #1147

Open
wants to merge 582 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
582 commits
Select commit Hold shift + click to select a range
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
d371af5
fix links in docs (#968)
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
57b3078
version bump (#1004)
joshreini1 Mar 15, 2024
6fccee8
Python 3.12 support (#1012)
joshreini1 Mar 19, 2024
75c5838
documentation nits and moves (#1015)
piotrm0 Mar 20, 2024
41936d8
Fix shield link to docs (#1019)
joshreini1 Mar 21, 2024
0387610
Create pull_request_template.md (#1021)
piotrm0 Mar 22, 2024
15fe242
Automated File Generation from Docs Notebook Changes (#1020)
github-actions[bot] Mar 22, 2024
45ee7b1
Fix DB Issues (#1023)
arn-tru Mar 22, 2024
0f9901e
typo in rag_triad.md (#1022)
joshreini1 Mar 22, 2024
502889e
Fix paul_graham_essay.txt links to new location (#1024)
joshreini1 Mar 22, 2024
c7814d6
Feedback upgrades (#1018)
joshreini1 Mar 22, 2024
cae1e2f
updated App.select_context to support MultiQueryRetriever of langchai…
sayedsohan Mar 22, 2024
bff1cdc
Add Vectara Hallucination Detection Model (#950)
Josephrp Mar 23, 2024
6f05a29
Parametrize temperature for create chat completion (#1026)
daniel-huang-1230 Mar 23, 2024
7974d12
0.27.0 version bump (#1027)
joshreini1 Mar 23, 2024
82f2d68
first (#1030)
piotrm0 Mar 26, 2024
f9fbef4
docs | standards on proper names (#997)
markdavidmc0 Mar 26, 2024
41d37f3
docs glossary (#1029)
piotrm0 Mar 26, 2024
9086f3e
fix doc link in hybrid retriever notebook (#1035)
daniel-huang-1230 Mar 27, 2024
63e436b
docs README (#1034)
joshreini1 Mar 27, 2024
23bad45
Update with_app.md (#1036)
nicoloboschi Mar 27, 2024
cbd6d36
more pipelines docs (#1033)
piotrm0 Mar 28, 2024
c30842a
Automated File Generation from Docs Notebook Changes (#1031)
github-actions[bot] Mar 28, 2024
2b5e303
add missing job name (#1037)
joshreini1 Mar 28, 2024
d013107
Add if_missing. (#1038)
piotrm0 Apr 1, 2024
f0484de
Docs updates for feedback, instrumentation apis, examples (#1032)
joshreini1 Apr 1, 2024
8a84b49
fix (#1043)
piotrm0 Apr 2, 2024
94088be
[DOCS] more proper names and glossary terms (#1042)
piotrm0 Apr 2, 2024
66fd06d
Added feedback button to trulens (#1046)
arn-tru Apr 2, 2024
99a80e0
Import improvements, fix version conflicts (#1047)
joshreini1 Apr 3, 2024
3da61a0
Fix import and favicon (#1049)
arn-tru Apr 3, 2024
ccf03b4
remove pkg_resources and distutils (#1052)
piotrm0 Apr 3, 2024
a9944b8
version bump (#1053)
joshreini1 Apr 4, 2024
29f1efb
add missing pprint import (#1054)
joshreini1 Apr 4, 2024
b6c96e9
bump 27 2 (#1055)
joshreini1 Apr 4, 2024
a8c350a
Meta-eval / feeback functions benchmarking notebooks, ranking-based e…
daniel-huang-1230 Apr 5, 2024
acba5ea
MongoDB Atlas quickstart (#1056)
joshreini1 Apr 6, 2024
5dbe80a
OpenAI Assistants API (quickstart) (#1041)
joshreini1 Apr 6, 2024
b9189ce
App delete functionality added (#1061)
arn-tru Apr 9, 2024
6f0973e
Queue fixed for python version lower than 3.9 (#1066)
arn-tru Apr 9, 2024
5644b1a
Added lanchain provider tests (#1062)
arn-tru Apr 17, 2024
d03fa8b
docs fixes (#1075)
piotrm0 Apr 17, 2024
1368970
configurable table prefix (#971)
piotrm0 Apr 17, 2024
5af1347
add example service file (#1072)
piotrm0 Apr 17, 2024
ba4cae3
fix test-tru (#1070)
piotrm0 Apr 17, 2024
14f1813
commented out broken tests (#1076)
arn-tru Apr 17, 2024
02c1bf9
fix legacy db missing abstract method (#1077)
piotrm0 Apr 17, 2024
3d33ffb
release test fixes (#1078)
piotrm0 Apr 17, 2024
ece8892
Version Bump 0.28.0 (#1079)
arn-tru Apr 17, 2024
b79a91a
Merge branch 'releases/rc-trulens-eval-0.28.0' into main
piotrm0 Apr 17, 2024
5cd3967
Update Main Branch to Match Latest Release (#1083)
arn-tru Apr 17, 2024
2e93282
feature(Improved Trace Display): [MLNN-1342] Improved Trace Display (…
walnutdust Apr 19, 2024
e4b17f0
improvements(configs): Add import-related configs (#1091)
walnutdust Apr 22, 2024
2a9ae32
add maintainers and releases files (#1085)
piotrm0 Apr 22, 2024
c5dceee
Fix Colab links in expositional example notebooks (#1095)
daniel-huang-1230 Apr 23, 2024
7bc2ec2
better singleton already made warnings (#1088)
piotrm0 Apr 23, 2024
8deebee
Fixes to package build. (#1093)
piotrm0 Apr 23, 2024
57bc3b6
remove legacy db implementation (#1084)
piotrm0 Apr 23, 2024
3da0f6a
split schema.py (#1090)
piotrm0 Apr 23, 2024
85d1ed5
patch release 0.28.1 (#1094)
piotrm0 Apr 23, 2024
47e7d77
Fix dividing by zero error in context_relevance_with_cot_reasons + at…
daniel-huang-1230 Apr 24, 2024
46d362e
Prepare notebook for Assistants API hackathon (#1102)
daniel-huang-1230 Apr 26, 2024
96d6765
Show OSS models (and tracking) in LiteLLM application (#1109)
joshreini1 Apr 29, 2024
d4d7973
fix(pills): Fixed bug with trace view initialization when no feedback…
walnutdust Apr 30, 2024
0591fcc
chore: remove unused code cell (#1113)
stokedout Apr 30, 2024
73385b4
Automated File Generation from Docs Notebook Changes (#1114)
github-actions[bot] Apr 30, 2024
6f1fd6a
Remove references to running moderation endpoint on AzureOpenAI (#1116)
joshreini1 May 1, 2024
837784c
swap rag utility (qs)relevance (#1120)
piotrm0 May 2, 2024
7bd5d00
Fix Link (#1128)
timbmg May 7, 2024
a311b0b
update groundedness prompt (#1112)
bpmcgough May 7, 2024
f231f9c
Fix docs links in instrumentation (#1129)
joshreini1 May 7, 2024
11f22e1
fix rag triad and awaitable calls (#1110)
piotrm0 May 7, 2024
fc2c5a2
trurails: update to getattr (#1130)
joshreini1 May 9, 2024
529c68c
Remove placeholder feedback (#1127)
arn-tru May 9, 2024
7457e53
Default names for rag triad utility (#1122)
joshreini1 May 9, 2024
45338b0
add reasons to answer, context relevance; add collect to groundedness
joshreini1 May 10, 2024
9f7bbab
Update custom functions notebook to reflect context relevance change …
joshreini1 May 13, 2024
e365a6e
Update custom_feedback_functions.ipynb
joshreini1 May 14, 2024
744ea34
Update README.md (#1136)
eltociear May 14, 2024
d8ff339
Unify groundedness interface (#1135)
joshreini1 May 14, 2024
78dbb12
dont iterate streams in openai cost tracking (#1138)
piotrm0 May 15, 2024
95d8d0b
Automated File Generation from Docs Notebook Changes (#1137)
github-actions[bot] May 15, 2024
c424cd4
Fix a few old groundedness references (#1139)
joshreini1 May 15, 2024
e557792
Update all_tools.py
joshreini1 May 15, 2024
9a6edec
Update llama_index_quickstart.ipynb
joshreini1 May 15, 2024
e41e513
Automated File Generation from Docs Notebook Changes (#1141)
github-actions[bot] May 15, 2024
32de002
update comprehensiveness + nb (#1064)
joshreini1 May 16, 2024
05f7e74
0.29.0 version bump (#1140)
joshreini1 May 17, 2024
0c1d745
Automated File Generation from Docs Notebook Changes (#1143)
github-actions[bot] May 17, 2024
43bfb74
glossary additions (#1144)
piotrm0 May 20, 2024
e06afaf
Update ollama_quickstart.ipynb
joshreini1 May 21, 2024
4ea9855
Added trulens dashboard viewer
Nanthagopal-Eswaran May 21, 2024
7b537b7
added root init
Nanthagopal-Eswaran May 21, 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
  •  
  •  
  •  
27 changes: 27 additions & 0 deletions .azure_pipelines/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Pipelines

Note that the pipeline definitions in this folder are for azure pipelines, not
github pipelines. There are differences between these systems.

- `ci-eval-pr.yaml` is run for all PRs to _TruLens-Eval_. Success is needed for
merging into `main`.
- `ci-eval.yaml` for _TruLens-Eval_ releases. This includes database migration
tests as well as running notebooks. Success is needed for merging into
`releases/*`. Also, any branch named `releases/*` needs to pass the pipeline
tests before merging into `main`.
- `ci.yaml` is run for all PRs to _TruLens-Explain_. Success is needed for
merging into `main`.

## More information

- Branch protection rules. These specify what pipelines must succeed before a PR
can be merged. These are configured from the [Branches
settings](https://github.com/truera/trulens/settings/branches) panel.

- Pipelines. Pipelines are described by the various `.yaml` files in this folder
and pointed to by the [Azure
Pipelines](https://dev.azure.com/truera/trulens/_build) definitions.

- [Triggers
documentation](https://learn.microsoft.com/en-us/azure/devops/pipelines/build/triggers?view=azure-devops)
describes how to setup trigers (when a pipeline needs to run).
35 changes: 35 additions & 0 deletions .azure_pipelines/ci-docs-pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# This a definition for azure pipelines, not github pipelines. There are
# differences between these systems.

trigger: none

pr:
# Run this pipeline for any PR that wishes to push to main that changes code
# inside docs folder.
branches:
include:
- main
paths:
include:
- docs

jobs:
- job: DocsCheck
displayName: "Check Documentation"
pool:
vmImage: "ubuntu-latest"
timeoutInMinutes: 30

strategy:
matrix:
latest:
python-version: "3.12"

steps:
- checkout: self
clean: true

- bash: |
echo "There are no doc checks at the moment."

displayName: "Dummy check"
150 changes: 126 additions & 24 deletions .azure_pipelines/ci-eval-pr.yaml
Original file line number Diff line number Diff line change
@@ -1,52 +1,154 @@
# This a definition for azure pipelines, not github pipelines. There are
# differences between these systems.

trigger: none

pr:
# Run this pipeline for any PR that wishes to push to main that changes code
# inside trulens_eval folder.
branches:
include:
- main
- releases/*
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.12
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
py311-static:
python-version: 3.11
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

83 changes: 60 additions & 23 deletions .azure_pipelines/ci-eval.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
trigger:
branches:
include:
- main
paths:
include:
- trulens_eval
- docs/trulens_eval/*.ipynb
trigger: none

pr:
# Run this pipeline for any PR from a branch that starts with "releases/" that
# changed code in trulens_eval folder or to eval notebooks in the docs folder.
branches:
include:
- releases/*
Expand All @@ -16,76 +11,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 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 $(testSubdirectory)
displayName: Run unit tests

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
Loading