Skip to content

Commit

Permalink
Merge pull request #18 from lastmile-ai/pr18
Browse files Browse the repository at this point in the history
Updates to Dependencies and Dependency Management
  • Loading branch information
Ankush-lastmile committed May 27, 2024
2 parents 3284f09 + 36303af commit a667c10
Show file tree
Hide file tree
Showing 15 changed files with 49 additions and 36 deletions.
11 changes: 9 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = ["setuptools", "wheel"]

[project]
name = "tracing_auto_instrumentation"
version = "0.0.3"
version = "0.0.4"
authors = [
{ name="LastMile AI" },
]
Expand All @@ -14,11 +14,18 @@ classifiers = [
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
]
dynamic = ["dependencies"]
dynamic = ["dependencies", "optional-dependencies"]

[tool.setuptools.dynamic]
dependencies = {file = ["requirements.txt"]}

[tool.setuptools.dynamic.optional-dependencies]
ibm = {file = ["requirements-ibm.txt"]}
langchain = {file = ["requirements-langchain.txt"]}
llama-index = {file = ["requirements-llama-index.txt"]}
openai = {file = ["requirements-openai.txt"]}


[project.urls]
"Homepage" = "https://github.com/lastmile-ai/tracing_auto_instrumentation"
"Bug Tracker" = "https://github.com/lastmile-ai/tracing_auto_instrumentation/issues"
Expand Down
1 change: 1 addition & 0 deletions requirements-ibm.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ibm-watsonx-ai
4 changes: 4 additions & 0 deletions requirements-langchain.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
langchain
langchain_core
langchain_openai
openinference-instrumentation-langchain
5 changes: 5 additions & 0 deletions requirements-llama-index.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
llama-index
llama-index-embeddings-openai
llama-index-readers-web
llama-index-callbacks-openinference
openinference-instrumentation-llama-index
1 change: 1 addition & 0 deletions requirements-openai.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
openai
23 changes: 4 additions & 19 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,6 @@
# Common dependencies
lastmile_eval

ibm-watsonx-ai
openai

# Integrations with other LLM frameworks
llama-index
llama-index-embeddings-openai
llama-index-readers-web
llama-index-callbacks-openinference
openai
html2text
pandas
pyarrow
html2text
pandas
pyarrow
tqdm
openinference-instrumentation-llama-index
openinference-instrumentation-langchain
langchain
langchain_core
langchain_openai
ibm_watsonx_ai
14 changes: 0 additions & 14 deletions src/tracing_auto_instrumentation/__init__.py
Original file line number Diff line number Diff line change
@@ -1,14 +0,0 @@
from .llama_index_callback_handler import (
LlamaIndexCallbackHandler,
)

from .langchain_instrumentor import LangChainInstrumentor
from .ibm import wrap_watson
from .openai import wrap_openai

__ALL__ = [
LlamaIndexCallbackHandler.__name__,
LangChainInstrumentor.__name__,
wrap_watson.__name__,
wrap_openai.__name__,
]
6 changes: 6 additions & 0 deletions src/tracing_auto_instrumentation/ibm/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

from .ibm import wrap_watson

__ALL__ = [
wrap_watson.__name__,
]
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
)


from .wrap_utils import (
from ..wrap_utils import (
NamedWrapper,
)

Expand Down
5 changes: 5 additions & 0 deletions src/tracing_auto_instrumentation/langchain/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from .langchain_instrumentor import LangChainInstrumentor

__ALL__ = [
LangChainInstrumentor.__name__,
]
8 changes: 8 additions & 0 deletions src/tracing_auto_instrumentation/llama_index/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from .llama_index_callback_handler import (
LlamaIndexCallbackHandler,
)


__ALL__ = [
LlamaIndexCallbackHandler.__name__,
]
5 changes: 5 additions & 0 deletions src/tracing_auto_instrumentation/openai/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from .openai import wrap_openai

__ALL__ = [
wrap_openai.__name__,
]
File renamed without changes.

0 comments on commit a667c10

Please sign in to comment.