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] generators debugging #875

Draft
wants to merge 454 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
454 commits
Select commit Hold shift + click to select a range
5c88a5e
bump version quickstarts
joshreini1 Oct 6, 2023
5cb5384
version bump 0.15.1 (#491)
joshreini1 Oct 6, 2023
86ab251
first (#493)
piotrm0 Oct 7, 2023
7c29149
LLMProvider use bugfixes (#495)
piotrm0 Oct 10, 2023
1b21016
Update version on key notebooks (#498)
shayaks Oct 11, 2023
0325309
[MLNN-1020] App runner UI updates (#503)
walnutdust Oct 16, 2023
5a10f26
Fix groundedness aggregation flakiness + incorrect 0 resolution. (#501)
joshreini1 Oct 18, 2023
f473da1
[MLNN-1053] Add groundedness to Pinecone notebook (#506)
ejisoo Oct 18, 2023
1b880b4
[MLNN-1046] Example app with TruLens (#500)
daniel-huang-1230 Oct 18, 2023
f21e13c
[MLNN-1053] Update dependencies in pinecone notebook (#507)
ejisoo Oct 18, 2023
4041684
threading robustness and feedback retrieval (#480)
piotrm0 Oct 18, 2023
93ea345
Automated File Generation from Docs Notebook Changes (#508)
github-actions[bot] Oct 19, 2023
fb8c8ec
updating JSONPath and features (#502)
piotrm0 Oct 19, 2023
861fc54
handle no pii (#504)
joshreini1 Oct 19, 2023
86901c9
Update Instrumentation Overview page: fix link, add trucustom (#505)
joshreini1 Oct 20, 2023
0259183
bugfixes (#510)
piotrm0 Oct 20, 2023
ffaf28e
dashboard appui quickstart (#511)
piotrm0 Oct 20, 2023
4600159
fix (#513)
walnutdust Oct 20, 2023
cacdbff
Release branch 0.16.0 (#514)
daniel-huang-1230 Oct 20, 2023
affab95
example appui in quickstart
piotrm0 Oct 25, 2023
ef8297a
Revert "Release branch 0.16.0 (#514)"
piotrm0 Oct 25, 2023
0f3e1e0
Revert "Revert "Release branch 0.16.0 (#514)""
piotrm0 Oct 25, 2023
6bde633
Revert "example appui in quickstart"
piotrm0 Oct 25, 2023
3b70a57
dynamic leaderboard (#523)
joshreini1 Oct 25, 2023
3d3ad17
dedup (#517)
piotrm0 Oct 26, 2023
8c875d3
Automated File Generation from Docs Notebook Changes (#526)
github-actions[bot] Oct 26, 2023
550cd9c
Update use_cases_production.md (#516)
joshreini1 Oct 26, 2023
1a30152
[MLNN-1072] Add feedback direction `higher_is_better` by default (#528)
ejisoo Nov 1, 2023
c9a878e
[MLNN-963] Smoke Testing Improvements and Eval Benchmarking (#527)
daniel-huang-1230 Nov 1, 2023
376e9eb
Improve cot reasoning (#524)
joshreini1 Nov 1, 2023
192a9ff
update and add docstrings (#530)
piotrm0 Nov 1, 2023
f03f41e
fix regex for score / rating extraction (#532)
daniel-huang-1230 Nov 1, 2023
880b1ca
fix litellm provider (#529)
joshreini1 Nov 1, 2023
9889fab
Anthropic Integration (#531)
joshreini1 Nov 1, 2023
729eb85
Fix small bug with feedback direction (#533)
joshreini1 Nov 1, 2023
05653e2
Fix cell highlight in feedback tab (#534)
ejisoo Nov 1, 2023
3b72f61
Releases/rc trulens eval 0.17.0a (#535)
joshreini1 Nov 2, 2023
80b15ba
Revert "Releases/rc trulens eval 0.17.0a (#535)" (#537)
joshreini1 Nov 2, 2023
0befb8a
Revert "Revert "Releases/rc trulens eval 0.17.0a (#535)" (#537)" (#539)
joshreini1 Nov 2, 2023
ef77c75
Automated File Generation from Docs Notebook Changes (#540)
github-actions[bot] Nov 2, 2023
5d4a3b1
Releases/rc trulens eval 0.17.0b (#541)
joshreini1 Nov 2, 2023
3ff8878
Automated File Generation from Docs Notebook Changes (#542)
github-actions[bot] Nov 2, 2023
dffa0ea
Releases/rc trulens eval 0.17.0 (#543)
joshreini1 Nov 2, 2023
cbbacac
Automated File Generation from Docs Notebook Changes (#544)
github-actions[bot] Nov 2, 2023
0c4dd86
Temporarily pin openai until we migrate (#548)
joshreini1 Nov 8, 2023
f797638
fix nav background color on mobile (MLNN-1095) (#547)
joshreini1 Nov 8, 2023
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
32e1c28
added more fake behaviour to dummy app and dummy endpoint
piotrm0 Jan 20, 2024
7e0c001
dummy testing
piotrm0 Jan 20, 2024
dc0325d
typo
piotrm0 Jan 22, 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
5410e89
update feedback_result usage in notebooks
piotrm0 Jan 24, 2024
2b518c8
clean up imports
piotrm0 Jan 24, 2024
619dbfa
revert unneeded
piotrm0 Jan 24, 2024
b9a4de6
make format
piotrm0 Jan 24, 2024
9c29242
nits to dummy example testing
piotrm0 Jan 24, 2024
23cc761
Merge remote-tracking branch 'origin/main' into piotrm/deferred_mem
piotrm0 Jan 24, 2024
073f0b8
format
piotrm0 Jan 24, 2024
89c1c2e
nits to satisfy pydantic
piotrm0 Jan 24, 2024
62fe3cf
adding a wait for pending feedback for entire app
piotrm0 Jan 24, 2024
f2da4c3
renamed
piotrm0 Jan 24, 2024
475899f
bugfix race
piotrm0 Jan 24, 2024
26fe140
deprecate more things (#817)
piotrm0 Jan 24, 2024
ac7d235
Generate Test Cases (#705)
joshreini1 Jan 24, 2024
743b3db
reenable tests that were async and never awaited
piotrm0 Jan 25, 2024
fed229e
Merge branch 'main' into piotrm/deferred_mem
joshreini1 Jan 25, 2024
ac1dc54
Refactor Evaluation Docs (#823)
joshreini1 Jan 25, 2024
ad13b6f
Merge branch 'main' into piotrm/deferred_mem
joshreini1 Jan 25, 2024
9a34cae
Make OpenAI Optional (#827)
joshreini1 Jan 26, 2024
af97051
remove dotdotdot for python 3.9
piotrm0 Jan 26, 2024
b13da3b
more dotdotdots
piotrm0 Jan 26, 2024
9b82045
Merge remote-tracking branch 'origin/main' into piotrm/deferred_mem
piotrm0 Jan 26, 2024
7d5f4e9
Merge remote-tracking branch 'refs/remotes/origin/piotrm/deferred_mem…
piotrm0 Jan 26, 2024
a778b48
adding nest_asyncio to reqs and trying to use fewer desync calls
piotrm0 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
d4a513c
Merge remote-tracking branch 'origin/main' into piotrm/deferred_mem
piotrm0 Feb 5, 2024
47f806c
init cleanup (#852)
piotrm0 Feb 5, 2024
6a31f4c
adding unit tests
piotrm0 Feb 5, 2024
121f04a
cleanup
piotrm0 Feb 5, 2024
7ae6c1f
forgot typevar
piotrm0 Feb 5, 2024
a6219e0
add fake parameterizable Queue type
piotrm0 Feb 5, 2024
ef92824
more unit tests
piotrm0 Feb 6, 2024
8a186e7
more Tru class testing
piotrm0 Feb 6, 2024
1b4d784
fix bad merge
piotrm0 Feb 6, 2024
4fb15b7
nits
piotrm0 Feb 6, 2024
29d93a8
Randomly run evals based on record_id hash (#850)
joshreini1 Feb 6, 2024
9f917ed
fix typo (#857)
joshreini1 Feb 6, 2024
910fd4c
change llama test example
piotrm0 Feb 7, 2024
b4b9df9
Merge remote-tracking branch 'origin/main' into piotrm/deferred_mem
piotrm0 Feb 7, 2024
99d747c
Fix typo and adjust some debug printouts. (#866)
piotrm0 Feb 7, 2024
1e2ed16
nits and move chain tests to optional requirements
piotrm0 Feb 7, 2024
e55cafa
nits
piotrm0 Feb 7, 2024
73e9ce8
Merge remote-tracking branch 'origin/main' into piotrm/deferred_mem
piotrm0 Feb 7, 2024
c87c99f
debugging generators (streaming=true) in llama_index
piotrm0 Feb 8, 2024
b4634da
remove print
piotrm0 Feb 8, 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
  •  
  •  
  •  
133 changes: 111 additions & 22 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,133 @@ 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

# This doesn't seem to be neccessary, the env is setup without it perhaps by
# Azure pipeline config?
#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)

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)
source activate $(python-version)

pip install yapf==0.32.0
./format.sh
displayName: Format Code
- bash: |
num_changed_files=`git ls-files --others -m --exclude-standard | wc -l`
pip install isort==5.10.1

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 .

python --version
pip --version
pip list
displayName: Install trulens

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

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

displayName: Install testing packages

- 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 -r trulens_eval/requirements.optional.txt

python --version
pip --version
pip list
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

displayName: Unit tests with optional packages

44 changes: 35 additions & 9 deletions .azure_pipelines/ci-eval.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ pr:
- trulens_eval
- docs/trulens_eval/*.ipynb

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

jobs:
- job: quickstartTests
Expand All @@ -33,59 +39,79 @@ jobs:
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 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)

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)
pip install pytest==7.0.1 pytest-azurepipelines langchain>=0.0.170 llama_index>=0.6.24
pip install docarray hnswlib
echo '::group::piplist'
echo "$(pip list)"
echo '::endgroup::'
displayName: Pip list

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

python -m pytest $(testSubdirectory)
displayName: Run unit tests
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