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

feat: Utility to auto-tag LiteralAI threads based on user_id #257

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

yoomlam
Copy link
Contributor

@yoomlam yoomlam commented Mar 13, 2025

Ticket

https://navalabs.atlassian.net/browse/DST-857
Slack

Changes

Add utility to auto-tag LiteralAI threads based on user_id

Testing

Download literalai_user_tags.json from the 'LiteralAI logs' Google Drive folder.

Set LITERAL_API_KEY env var for the prod or dev env

make literalai-tagger args="--dry-run"
make literalai-tagger

LiteralAI UI shows tags:
image

Copy link

github-actions bot commented Mar 13, 2025

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
3807 3473 91% 80% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
app/src/util/literalai_util.py 81% 🟢
TOTAL 81% 🟢

updated for commit: 06a9329 by action🐍

@@ -25,6 +25,16 @@
require_login()


@cl.set_chat_profiles
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@@ -167,6 +178,7 @@ async def update_settings(settings: dict[str, Any]) -> Any:
}


# TODO: Try cl.chat_context.to_openai() to get the conversation in OpenAI format
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ran acrosscl.chat_context.to_openai() when reviewing Chainlit docs

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.

1 participant