Improve Langfuse prompts listing and packaging#16
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Testing
pytest -qmake buildmake upload-test(fails: 403 Forbidden due to missing credentials)https://chatgpt.com/codex/tasks/task_e_684ed071a3e08329a2229af62562f7de
APPENDIX
FUSE DOCS
Langfuse Integration
cofuse.pyto handle Langfuse HTTP requests usingrequests.coaiacli.pyunderfusesubparser to manage:read_config()fromcoaiamodulefor authentication details.create_session(session_id, user_id, session_name)add_trace_node(session_id, trace_id, user_id, node_name)list_prompts(),get_prompt(...),create_prompt(...)list_datasets(),get_dataset(...),create_dataset(...)get_comments(),post_comment(...)Usage
comments
• List comments:
coaia fuse comments list
• Post a new comment:
coaia fuse comments post "Your comment here"
prompts
• List prompts (all pages):
coaia fuse prompts list
• Get a specific prompt:
coaia fuse prompts get myPrompt
• Create a prompt:
coaia fuse prompts create myPrompt "Prompt text"
datasets
• List datasets:
coaia fuse datasets list
• Get a dataset:
coaia fuse datasets get myDataset
• Create a dataset:
coaia fuse datasets create myDataset
sessions
• Create a new session:
coaia fuse sessions create session123 userABC -n "My Session" -f mysession.yml
• Add a child node:
coaia fuse sessions addnode session123 trace01 userABC -n "First Node" -f mysession.yml
• View session file:
coaia fuse sessions view -f mysession.yml
scores (alias: sc)
• Create a new score:
coaia fuse scores create myScoreId -n "Score Name" -v 1.5
• Apply a score to a trace:
coaia fuse scores apply someTrace myScoreId -v 2.0
"coaia fuse "It is so much more than that..... but that is a start