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 Export Conversations and Scores in the same JSON file #422

Open
nina-msft opened this issue Oct 2, 2024 · 1 comment · May be fixed by #432
Open

FEAT Export Conversations and Scores in the same JSON file #422

nina-msft opened this issue Oct 2, 2024 · 1 comment · May be fixed by #432
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@nina-msft
Copy link
Contributor

nina-msft commented Oct 2, 2024

Is your feature request related to a problem? Please describe.

When conversations are added to memory, they have a specific ID. If Conversations have been scored, the ScoreEntry's prompt_request_response_id directly matches the PromptMemoryEntry id. Currently, memory_interface only has 2 functions to export the database conversations to JSON: export_conversation_by_orchestrator_id and export_conversation_by_id. This is great for getting conversations from the DB (but only for PromptMemoryEntry).

Describe the solution you'd like

Add a function to the memory_interface for DuckDB that exports conversations and their scores into a JSON file.

This may require creation of an intermediary function that exports scores by prompt_request_response_id into a JSON file. The result will be one file that has an entry per Prompt Request Response ID with conversation and score information fields.

@nina-msft nina-msft added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Oct 2, 2024
@nina-msft
Copy link
Contributor Author

nina-msft commented Oct 4, 2024

It won't let me assign you Siddhi, but thank you for opening that PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant