Skip to content

Commit

Permalink
Passing file name in usage Kwargs (#571)
Browse files Browse the repository at this point in the history
* Passing file name in usage Kwargs

* updated the SDK version to 0.44.0

* Update pdm.lock for prompt-service

* Update pdm.lock for backend

* Update pdm.lock for root

* Added comment to avoid confusion in promptsudio helper

* Updated text extractor version

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
johnyrahul and github-actions[bot] authored Aug 13, 2024
1 parent f35efed commit 931dae6
Show file tree
Hide file tree
Showing 15 changed files with 240 additions and 72 deletions.
86 changes: 70 additions & 16 deletions backend/pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -795,6 +795,8 @@ def dynamic_indexer(
try:

usage_kwargs = {"run_id": run_id}
# Orginal file name with which file got uploaded in prompt studio
usage_kwargs["file_name"] = filename
util = PromptIdeBaseTool(log_level=LogLevel.INFO, org_id=org_id)
tool_index = Index(tool=util)
doc_id_key = tool_index.generate_file_id(
Expand Down
2 changes: 1 addition & 1 deletion backend/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ dependencies = [
"python-socketio==5.9.0", # For log_events
"social-auth-app-django==5.3.0", # For OAuth
"social-auth-core==4.4.2", # For OAuth
"unstract-sdk~=0.42.0",
"unstract-sdk~=0.44.0",
# ! IMPORTANT!
# Indirect local dependencies usually need to be added in their own projects
# as: https://pdm-project.org/latest/usage/dependency/#local-dependencies.
Expand Down
Loading

0 comments on commit 931dae6

Please sign in to comment.