Skip to content

Commit 9dc26e2

Browse files
authored
chore: removed extra of requirements (#1225)
1 parent a5b601c commit 9dc26e2

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,3 +168,4 @@ cython_debug/
168168
experiments/
169169
**/fil-result/
170170
src/ragas/_version.py
171+
.vscode/settings.json

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ package-dir = {"" = "src"}
2727
[tool.setuptools.dynamic]
2828
readme = {file = ["README.md"], content-type = "text/plain"}
2929

30+
[tool.ruff]
31+
exclude = ["*.ipynb"]
32+
3033
[tool.ruff.lint]
3134
ignore = ["E501"]
3235

src/ragas/integrations/langchain.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ def __init__(self, metric: Metric, **kwargs: t.Any):
4848
t.cast(MetricWithLLM, self.metric).llm = LangchainLLMWrapper(llm)
4949
if isinstance(self.metric, MetricWithEmbeddings):
5050
embeddings = get_or_init(kwargs, "embeddings", OpenAIEmbeddings)
51-
t.cast(MetricWithEmbeddings, self.metric).embeddings = (
52-
LangchainEmbeddingsWrapper(embeddings)
53-
)
51+
t.cast(
52+
MetricWithEmbeddings, self.metric
53+
).embeddings = LangchainEmbeddingsWrapper(embeddings)
5454
self.metric.init(run_config)
5555

5656
@property

0 commit comments

Comments
 (0)