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

yahya/trace_langchain_vector_search_with_score #10808

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

Conversation

yahya-mouman
Copy link
Contributor

No description provided.

Copy link
Contributor

CODEOWNERS have been resolved as:

tests/contrib/langchain/cassettes/langchain_community/langchain_pinecone_similarity_search.yaml  @DataDog/ml-observability
tests/contrib/langchain/cassettes/langchain_community/langchain_pinecone_similarity_search_by_vector_with_score.yaml  @DataDog/ml-observability
tests/contrib/langchain/cassettes/langchain_community/langchain_pinecone_similarity_search_with_score.yaml  @DataDog/ml-observability
tests/snapshots/tests.contrib.langchain.test_langchain.test_pinecone_vectorstore_similarity_search_with_score.json  @DataDog/apm-python
tests/snapshots/tests.contrib.langchain.test_langchain_community.test_pinecone_vectorstore_similarity_search_by_vector_with_score.json  @DataDog/apm-python
tests/snapshots/tests.contrib.langchain.test_langchain_community.test_pinecone_vectorstore_similarity_search_with_score.json  @DataDog/apm-python
ddtrace/contrib/internal/langchain/constants.py                         @DataDog/ml-observability
ddtrace/contrib/internal/langchain/patch.py                             @DataDog/ml-observability
riotfile.py                                                             @DataDog/apm-python
tests/contrib/langchain/conftest.py                                     @DataDog/ml-observability
tests/contrib/langchain/test_langchain.py                               @DataDog/ml-observability
tests/contrib/langchain/test_langchain_community.py                     @DataDog/ml-observability
tests/snapshots/tests.contrib.langchain.test_langchain.test_pinecone_vectorstore_similarity_search.json  @DataDog/apm-python
tests/snapshots/tests.contrib.langchain.test_langchain_community.test_pinecone_vectorstore_similarity_search.json  @DataDog/apm-python

@pr-commenter
Copy link

pr-commenter bot commented Sep 25, 2024

Benchmarks

Benchmark execution time: 2024-09-30 14:41:14

Comparing candidate commit 50a8063 in PR branch yahya/trace_langchain_vector_search_with_score with baseline commit 3181ad3 in branch main.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 371 metrics, 53 unstable metrics.

@@ -677,13 +702,14 @@ def test_llmobs_embedding_documents(
)
)

# TODO : update test
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Quality Violation

Suggested change
# TODO : update test
# TODO(<owner>) : update test
comments must have ownership (...read more)

When using TODO or FIXME, specify who write the annotation. It's a best practice to remind you who created the annotation and have potential context and information about this issue.

View in Datadog  Leave us feedback  Documentation

document["name"] = metadata.get("name", document["id"])
if score is not None:
document["score"] = score
documents.append(document)
span.set_tag_str(OUTPUT_DOCUMENTS, safe_json(self.format_io(documents)))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
span.set_tag_str(OUTPUT_DOCUMENTS, safe_json(self.format_io(documents)))
span.set_tag_str(OUTPUT_DOCUMENTS, safe_json(documents))

@datadog-dd-trace-py-rkomorn
Copy link

Datadog Report

Branch report: yahya/trace_langchain_vector_search_with_score
Commit report: 50a8063
Test service: dd-trace-py

✅ 0 Failed, 1286 Passed, 0 Skipped, 34m 42.7s Total duration (2m 10.51s time saved)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants