Skip to content

Commit

Permalink
expect embeddings tracing in llamaindex and langchain, mod len of fla…
Browse files Browse the repository at this point in the history
…ttened calls
  • Loading branch information
abraham-leal committed Dec 16, 2024
1 parent 71749f3 commit d80a74f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/integrations/langchain/langchain_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def run_batch(batch: list) -> None:

def assert_correct_calls_for_rag_chain(calls: list[Call]) -> None:
flattened = flatten_calls(calls)
assert len(flattened) == 10
assert len(flattened) == 12
assert_ends_and_errors(flattened)

got = [(op_name_from_ref(c.op_name), d) for (c, d) in flattened]
Expand Down
2 changes: 1 addition & 1 deletion tests/integrations/llamaindex/llamaindex_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def assert_calls_correct_for_quickstart(flattened_calls: list[Call]) -> None:
llama_index.llm
openai.chat.completions.create
"""
assert len(flattened_calls) == 9
assert len(flattened_calls) == 11

exp = [
("llama_index.query", 0),
Expand Down

0 comments on commit d80a74f

Please sign in to comment.