-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* first * fix pinecone package name * adjust progress and add dummy provider delay option * cleanup phase 1 * adding more sections to api docs * added more pages * Add backwards compatible Record.feedback_results . * version bump * misssed version bump * bump py_script quickstarts * typo * finished first pass over Tru class doc standardization. * a bit more * nits * another nit * more * fix links * nonetype for python 3.9 * fix class nav not working * update generate_score and generate_score_and_reason docstrings * remove bad js * adding record to api docs * adjust providers nav and pages * forgot one provider * move things * piepline fixes --------- Co-authored-by: Josh Reini <[email protected]> Co-authored-by: Josh Reini <[email protected]>
- Loading branch information
1 parent
0d7035a
commit fe3d79a
Showing
111 changed files
with
2,257 additions
and
1,374 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,5 +43,6 @@ credentials.toml | |
|
||
**/*.sqlite | ||
|
||
# Virtual environment | ||
.venv | ||
# Virtual environments | ||
.venv | ||
.conda |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,31 @@ | ||
SHELL := /bin/bash | ||
CONDA_ENV := demo3 | ||
CONDA := source $$(conda info --base)/etc/profile.d/conda.sh ; conda activate ; conda activate $(CONDA_ENV) | ||
CONDA := source $$(conda info --base)/etc/profile.d/conda.sh ; conda activate ; conda activate | ||
|
||
format: | ||
$(CONDA); bash format.sh | ||
# Create the conda env for building website, docs, formatting, etc. | ||
.conda/docs: | ||
conda create python=3.11 --yes --prefix=.conda/docs | ||
$(CONDA) .conda/docs; \ | ||
pip install -r trulens_eval/trulens_eval/requirements.txt; \ | ||
pip install -r trulens_eval/trulens_eval/requirements.optional.txt; \ | ||
pip install -r docs/docs_requirements.txt | ||
|
||
# Run the code formatter. | ||
format: .conda/docs | ||
$(CONDA) .conda/docs; bash format.sh | ||
|
||
# Start a jupyer lab instance. | ||
lab: | ||
$(CONDA); jupyter lab --ip=0.0.0.0 --no-browser --ServerApp.token=deadbeef | ||
$(CONDA) .conda/docs; jupyter lab --ip=0.0.0.0 --no-browser --ServerApp.token=deadbeef | ||
|
||
# Serve the documentation website. | ||
serve: site | ||
$(CONDA) .conda/docs; mkdocs serve -a 127.0.0.1:8000 | ||
|
||
# Build the documentation website. | ||
site: .conda/docs $(shell find docs -type f) mkdocs.yml | ||
$(CONDA) .conda/docs; mkdocs build | ||
rm -Rf site/overrides | ||
|
||
# Check that links in the documentation are valid. Requires the lychee tool. | ||
linkcheck: site | ||
lychee "site/**/*.html" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
mkdocs==1.4.2 | ||
python-markdown-math==0.8 | ||
mkdocs-material==9.1.4 | ||
mkdocstrings-python | ||
mkdocstrings==0.20.0 | ||
mkdocs-jupyter | ||
jupyter_contrib_nbextensions | ||
notebook<7 | ||
markdown-include | ||
# Packages required for building documentation pages. | ||
|
||
mkdocs >= 1.5.3 | ||
mkdocs-material >= 9.5.8 | ||
mkdocstrings-python >= 1.8.0 | ||
mkdocstrings >= 0.24.0 | ||
mkdocs-jupyter >= 0.24.6 | ||
|
||
python-markdown-math >= 0.8 | ||
markdown-include >= 0.8.1 | ||
|
||
jupyter_contrib_nbextensions >= 0.7.0 | ||
notebook <7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../trulens_eval/STANDARDS.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Apps in trulens derive from two classes, | ||
[AppDefinition][trulens_eval.schema.AppDefinition] and | ||
[App][trulens_eval.app.App]. The first contains only serialized or serializable | ||
components in a JSON-like format while the latter contains the executable apps | ||
that may or may not be serializable. | ||
|
||
::: trulens_eval.schema.AppDefinition | ||
|
||
::: trulens_eval.app.App |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Tru Basic App | ||
|
||
::: trulens_eval.tru_basic_app.TruBasicApp | ||
options: | ||
inherited_members: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# 🦜️🔗 Tru Chain | ||
|
||
::: trulens_eval.tru_chain.TruChain | ||
options: | ||
inherited_members: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Tru Custom App | ||
|
||
::: trulens_eval.tru_custom_app.TruCustomApp | ||
options: | ||
inherited_members: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# 🦙 Tru Llama | ||
|
||
::: trulens_eval.tru_llama.TruLlama | ||
options: | ||
inherited_members: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Tru Virtual | ||
|
||
::: trulens_eval.tru_virtual.VirtualRecord | ||
|
||
::: trulens_eval.tru_virtual.VirtualApp | ||
|
||
::: trulens_eval.tru_virtual.TruVirtual | ||
options: | ||
inherited_members: true |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Database | ||
|
||
::: trulens_eval.db | ||
|
||
::: trulens_eval.database.sqlalchemy_db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Endpoint API | ||
|
||
::: trulens_eval.feedback.provider.endpoint.base.Endpoint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
# Feedback Function APIs | ||
Below are out of the box feedback functions and how to instantiate them. | ||
# Feedback | ||
|
||
::: trulens_eval.trulens_eval.feedback.provider.base | ||
::: trulens_eval.feedback.feedback.ImpCallable | ||
|
||
::: trulens_eval.trulens_eval.feedback.groundedness | ||
::: trulens_eval.feedback.feedback.AggCallable | ||
|
||
::: trulens_eval.trulens_eval.feedback.groundtruth | ||
::: trulens_eval.feedback.feedback.Feedback | ||
|
||
::: trulens_eval.trulens_eval.feedback.embeddings | ||
::: trulens_eval.schema.FeedbackDefinition |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# AzureOpenAI Provider | ||
|
||
Below is how you can instantiate AzureOpenAI as a provider. | ||
|
||
Additionally, all feedback functions listed in these two classes can be run with AzureOpenAI: | ||
|
||
* [OpenAI class][trulens_eval.feedback.provider.openai.OpenAI] | ||
* [LLMProvider class][trulens_eval.feedback.provider.base.LLMProvider] | ||
|
||
::: trulens_eval.feedback.provider.openai.AzureOpenAI |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# AWS Bedrock Provider | ||
|
||
Below is how you can instantiate AWS Bedrock as a provider. [Amazon | ||
Bedrock](https://aws.amazon.com/bedrock/) is a fully managed service that makes | ||
FMs from leading AI startups and Amazon available via an API, so you can choose | ||
from a wide range of FMs to find the model that is best suited for your use case | ||
|
||
All feedback functions listed in the base [LLMProvider | ||
class][trulens_eval.feedback.provider.base.LLMProvider] can be run with AWS | ||
Bedrock. | ||
|
||
::: trulens_eval.feedback.provider.bedrock.Bedrock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# 🤗 Huggingface Provider | ||
|
||
::: trulens_eval.feedback.provider.hugs.Huggingface |
Oops, something went wrong.