Skip to content

Add docs for permission in 03 and add enable_trace in 04 #21

Open
chengyineng38 wants to merge 7 commits into
databricks:mainfrom
chengyineng38:main
Open

Add docs for permission in 03 and add enable_trace in 04 #21
chengyineng38 wants to merge 7 commits into
databricks:mainfrom
chengyineng38:main

Conversation

@chengyineng38

Copy link
Copy Markdown

No description provided.

@prithvikannan prithvikannan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for adding this @chengyineng38 ! Just one small thing about which data we use for review.

Comment thread rag_app_sample_code/A_POC_app/pdf_uc_volume/03_deploy_poc_to_review_app.py Outdated
Comment thread rag_app_sample_code/A_POC_app/pdf_uc_volume/04_create_evaluation_set.py Outdated

@prithvikannan prithvikannan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. I'm not an official maintainer of this repo so adding @smurching to approve

@smurching

Copy link
Copy Markdown
Collaborator

@chengyineng38 could you share proof of manual testing that this change works (feel free to reach out directly to me with a notebook link etc)? Otherwise looks good, thanks for the updates!


from databricks.agents import enable_trace_reviews

request_id_list = request_log_df.select(F.col("request_id")).rdd.flatMap(lambda x: x).collect()

@smurching smurching Aug 21, 2024

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

QQ, why do we need the .rdd.flatMap call? It might be cleaner to e.g. use .toPandas instead, since RDDs and their APIs are deprecated

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Good point. Simplified below.

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.

3 participants