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] traces #1104

Draft
wants to merge 567 commits into
base: main
Choose a base branch
from
Draft

[DRAFT] traces #1104

wants to merge 567 commits into from

Conversation

piotrm0
Copy link
Contributor

@piotrm0 piotrm0 commented Apr 27, 2024

Ongoing work is happening in the features/traces branch. This is here for reference and eventual merge into main.

joshreini1 and others added 30 commits December 12, 2023 15:32
* Update 2_honest_rag.ipynb

* Update 3_harmless_eval.ipynb

* Update 4_harmless_rag.ipynb

* Update 5_helpful_eval.ipynb

* Update 2_honest_rag.ipynb
* basic langchain provider implementation

* langchain provider, minor refactor

* update docstring

---------

Co-authored-by: Josh Reini <[email protected]>
* change relative links to hardcoded links in docs

* hardlink contributions guide

* update readmes, contributing
* first pass at migrating to pydantic v2, not ready

* more fixes

* disable protected namespace warning

* cleanup setup

* revert Any types

* fixing schema and serial types

* fixing more v1 -> v2 pydantic changes

* working trubot

* patching serialization and loading issues

* remove unneeded

* remove uneeded

* format

* pydantic update in reqs file

* test fixes

* revert explain changes

* remove unneeded

* fixing unit tests

---------

Co-authored-by: Josh Reini <[email protected]>
* adding migration from prior versions and a dump of current version database

* few fixes

* more fixes

* moar

* add pip list to pipeline

* activate

* fix pipeline again

* dont use class info unless needed

* deserialize

* fix type annotation of ground_truth

* update SimpleWebPageReader import

* notes

* missed some import changes

* more fixes

* type annot

* more fixes

* more fixes

* add Feedback info instead of FeedbackDefinition info
* update nb tagged versions

* bump py script quickstarts
* update nb tagged versions

* bump py script quickstarts

* remove cohere provider, fix typo in hf api docs

* more cohere removes
* better messages

* better dummy

* remove unused streamlit_javascript requirement
#690)

* extra query_str from query bundle as main input

* add test to dev_notebook

* notes for dev notebook
* add langchain rag instrumentation

* remove unneeded
* bump versions in quickstarts

* bump version

* remove openai references in function definitions page
* bump versions in quickstarts

* bump version

* remove openai references in function definitions page

* gemini example

* headers

* second example: semantic evals

* updates, add rag triad

* update top header
…#696)

* add aliases for selectors for main method args and main method return

* break down

* refine

---------

Co-authored-by: Josh Reini <[email protected]>
* exposed AzureOpenAI provider

* added docs

* Update CONTRIBUTING.md

* typo in mkdocs.yml

---------

Co-authored-by: Josh Reini <[email protected]>
* first

* typos

* typehint
* import llama only if needed

* use optional imports instead

---------

Co-authored-by: Piotr Mardziel <[email protected]>
* fix

* typo

* don't print external if internal is available
Co-authored-by: Piotr Mardziel <[email protected]>
* adjust docstring for select_context

* langchain select_context, update quickstarts

* undo app name change

* remove dev cell

* generalized langchain select_context (#711)

* generalized langchain select_context

* typo

* typo in string

* update langchain example to pass app in select_context

---------

Co-authored-by: Josh Reini <[email protected]>

* comments, clarity updates to quickstarts

* add lib-independent select_context

* update lc li quickstarts

---------

Co-authored-by: Piotr Mardziel <[email protected]>
* add optional

* bug class_info fix
* update configs

* bugfix

* dont add class info to dicts
* Fix correctness prompt

Fixes #718

* Update base.py
daniel-huang-1230 and others added 9 commits April 22, 2024 18:00
* fix expositional example colab links

* fix notebook description of test cases
* first

* delete instructions

* static delete singleton instructions
* remove legacy db

* change message for when legacy db is detected

* nit

* nits

* remove unneeded

* circular import avoid revert

* nits

* remove legacy db example

* remove 2 more outdated databases

* clean up removed db version references

* remove one more old ref

* remove last legacy db

---------

Co-authored-by: Aaron <[email protected]>
* shuffling

* update standard.md to mention python versions tested

* de-circularizing

* finishing up decircularization

* fix imports in tests

* more import fixes

* more import fixes

* updating docs and docstrings with new locations

* add temp to bedrock and ignored warning

* trying to remove circular import

* more debugging

* more fixes

* more of the same

* last few

* missed on

* nits

* typo

* fix feedbackmode imports

* 2 more fixes
* Fixes to package build.

* bump version
…las notebook update (#1097)

* fix dividing by zero error

* update notebook for webinar
* pin openai version for hackathon

* runnable e2e

* add migration guide
* shuffling

* update standard.md to mention python versions tested

* de-circularizing

* finishing up decircularization

* fix imports in tests

* more import fixes

* starting spans work

* more import fixes

* updating docs and docstrings with new locations

* add temp to bedrock and ignored warning

* trying to remove circular import

* more debugging

* more fixes

* more of the same

* last few

* missed on

* nits

* typo

* fix feedbackmode imports

* 2 more fixes

* starting spans work

* work

* working on spans

* opentelemetry work

* working on spans

* span work

* organize imports

* starting span categorization logic

* nits

* typo in module doc

* spans for custom apps

* clear outputs

* fix dictnamespace typing

* fill in parent relationships, dates, and inputs/outputs .
@dosubot dosubot bot added the size:XXL This PR changes 1000+ lines, ignoring generated files. label Apr 27, 2024
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@piotrm0 piotrm0 marked this pull request as draft April 27, 2024 01:40
@dosubot dosubot bot added the documentation Improvements or additions to documentation label Apr 27, 2024
walnutdust and others added 3 commits April 29, 2024 15:15
…#1107)

* shuffling

* update standard.md to mention python versions tested

* de-circularizing

* finishing up decircularization

* fix imports in tests

* more import fixes

* starting spans work

* more import fixes

* updating docs and docstrings with new locations

* add temp to bedrock and ignored warning

* trying to remove circular import

* more debugging

* more fixes

* more of the same

* last few

* missed on

* nits

* typo

* fix feedbackmode imports

* 2 more fixes

* starting spans work

* work

* working on spans

* opentelemetry work

* working on spans

* span work

* organize imports

* starting span categorization logic

* nits

* typo in module doc

* spans for custom apps

* clear outputs

* fix dictnamespace typing

* span types

* colors

* style updates

* span types

* more style fixes

* add dist build

* revert some changes

* revert ipynb changes

---------

Co-authored-by: Piotr Mardziel <[email protected]>
* oss models in app

* import change

* fix dims issue, pass embeddings manually

* keep some output

* remove settings print

* link model list for cost tracking
stokedout and others added 12 commits April 30, 2024 11:26
removed this so it's less confusing for newcomers
* more example span types

* typo
* more example span types

* typo

* feature(more span types): Add more span types to the UI (#1115)

* first run through

* save

* update

* revert changes to gitignore

---------

Co-authored-by: Garett Tok Ern Liang <[email protected]>
* save

* save

* maybe make schema generation better

* save

* save

* generate schemas for attribute properties

* add the generated typescript

---------

Co-authored-by: Garett Tok <[email protected]>
Co-authored-by: Piotr Mardziel <[email protected]>
* Remove references to running moderation endpoint on AzureOpenAI (#1116)

* azureopenai docstring

* azureopenai.md

* remove extra references to supported feedbacks

* Update azureopenai.md

* swap rag utility (qs)relevance (#1120)

* add otel semantic convention attributes

* notes

* Fix Link (#1128)

* update groundedness prompt (#1112)

Co-authored-by: Josh Reini <[email protected]>

* Fix docs links in instrumentation (#1129)

* fix link on langchain instrumentation docs

* fix llama-index quickstart link

* fix langchain instrumentation docs, add missing imports

* add missing imports to nemo instrumentation docs

* fix rag triad and awaitable calls (#1110)

* fix rag triad and awaitable calls

* remove locals printout in awaitables message

* add otel spec note

* extending custom tool to store the call stack for demonstration purposes, added trulens internals demonstrations notebook

* trurails: update to getattr (#1130)

* fix rag triad and awaitable calls

* remove locals printout in awaitables message

* update __getattr__ in select_context (#1119)

---------

Co-authored-by: Piotr Mardziel <[email protected]>

* Remove placeholder feedback (#1127)

Co-authored-by: Josh Reini <[email protected]>

* Default names for rag triad utility (#1122)

* Update feedback.py

* use name

* add reasons to answer, context relevance; add collect to groundedness

* Update custom functions notebook to reflect context relevance change (#1134)

* Update custom_feedback_functions.ipynb

* Update README.md (#1136)

retreivers -> retrievers

* revert original spans, leave otel versions for future use

* formatting

* move temporary things into another file

* Unify groundedness interface (#1135)

* unify groundedness start

* remove groundedness.py

* groundedness nli moves

* remove custom aggregator

* groundedness aggregator to user code

* move agg to trulens side by default (groundedness)

* remove extra code

* remove hf key setting

* remove hf import

* add comment about aggregation for context relevance

* update init

* remove unneeded import

* use generate_score_and_reasons for groundedness internally

* f-strings for groundedness prompts

* docstring

* docstrings formatting

* groundedness reasons template

* remove redundant prompt

* update quickstarts

* llama-index notebooks

* rag triad helper update

* oai assistant nb

* update readme

* models notebooks updates

* iterate nbs

* mongo, pinecone nbs

* update huggingface docstring

* remove outdated docstring selector notes

* more docstring cleaning

* checkpoint tracing testing

* dont iterate streams in openai cost tracking (#1138)

* open ai streaming adjustments in cost tracking

* notes

* delete outputs

* Automated File Generation from Docs Notebook Changes (#1137)

Co-authored-by: joshreini1 <[email protected]>
Co-authored-by: Josh Reini <[email protected]>

* Fix a few old groundedness references (#1139)

* Update selecting_components.md

* Update MultiQueryRetrievalLangchain.ipynb

* Update random_evaluation.ipynb

* Update canopy_quickstart.ipynb

* Update all_tools.py

* Update llama_index_quickstart.ipynb

* Automated File Generation from Docs Notebook Changes (#1141)

Co-authored-by: joshreini1 <[email protected]>

* rename and docs of temp file

* add freeze/thaw for exporters/importers

* update comprehensiveness + nb (#1064)

* update comprehensiveness + nb

* nb expansion

* fix typo

* meetingbank transcript data

* oss models in app

* test

* benchmarking gpt-3.5-turbo, gpt-4-turbo, and gpt-4o

* update path

* comprehensiveness benchmark

* updated summarization_eval nb

* fix normalization

* show improvement in comprehensiveness feedback functions

---------

Co-authored-by: Daniel <[email protected]>

* complexifying the example custom app

* debugging

* context nesting testing

* 0.29.0 version bump (#1140)

* version bump

* simpler lc quickstart

* update installs and imports

* update langchain instrumentation docs

* remove groundedness ref from providers.md

* build docs fixes

* remove key cell

* fix docs build

* firx formatting for stock.md

* remove extra spaces

* undo format change

* update docstrings for hugs and base provider

* openai docstring updates

* hugs docstring update

* update context relevance hugs docstring

* more docstring updates

* remove can be changed messages from openai provider docstrings

* Automated File Generation from Docs Notebook Changes (#1143)

Co-authored-by: joshreini1 <[email protected]>

* glossary additions (#1144)

* add to glossary

* finish some terms

* clean up notebook

* split off contexts examples

* move more things into context examples

* fixing some instrumentation stuff to be more robust

* prototyping json queries

* Update ollama_quickstart.ipynb

* don't remember

* add deprecation message for old module attributes

* adjust notes

* Patch imports error (#1146)

* add httpx to requirements

* undo httpx add

* test add langchain-community

* change langchain-community required version

* add langchain_community to optional imports and checks for use of openai endpoint (#1154)

* first

* adjust docs

* logic

* add langhain_community to pinecone reqs too

* adjust trubot example with new reqs

* more reqs

* remove extra text

* add langchain_community to a few imports in notebooks

---------

Co-authored-by: Piotr Mardziel <[email protected]>
Co-authored-by: Josh Reini <[email protected]>

* 0.30.0 bump (#1158)

Co-authored-by: Josh Reini <[email protected]>

* 0.30.1 bump (#1159)

Co-authored-by: Josh Reini <[email protected]>

* update ref to groundedness fn (#1161)

---------

Co-authored-by: Josh Reini <[email protected]>
Co-authored-by: Tim Baumgärtner <[email protected]>
Co-authored-by: Brian McGough <[email protected]>
Co-authored-by: Aaron <[email protected]>
Co-authored-by: Josh Reini <[email protected]>
Co-authored-by: Ikko Eltociear Ashimine <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: joshreini1 <[email protected]>
Co-authored-by: Daniel <[email protected]>
Co-authored-by: Piotr Mardziel <[email protected]>
Co-authored-by: Josh Reini <[email protected]>
Pydantic -> JSON schema -> typescript types generation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation size:XXL This PR changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.