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

Handling multi-prompt run #331

Merged
merged 8 commits into from
May 13, 2024
Merged

Handling multi-prompt run #331

merged 8 commits into from
May 13, 2024

Conversation

gaya3-zipstack
Copy link
Contributor

What

  • Fix to run multiple prompts in the prompt-studio simultaneously

Why

  • User may want to trigger multiple prompts back to back in prompt studio without waiting for one to complete

How

  • Using Django built-ins for taking care of handling Integrity errors on duplicates for index record creation, we can solve the IntegrityError happening on multi-prompt run

Can this PR break any existing features. If yes, please list possible items. If no, please explain why. (PS: Admins do not merge the PR without this section filled)

  • No. This is a prompt studio fix that is disabled now.

Database Migrations

  • NA

Env Config

  • NA

Relevant Docs

Related Issues or PRs

Dependencies Versions

Notes on Testing

  • Multi-prompt was enabled using a patch given by @tahierhussain in the Frontend code and the feature was tested.

Screenshots

  1. Upload document. Document not indexed.
    image

  2. Run multi-prompt in parallel
    image

  3. Prompt answers coming up...
    image

Checklist

I have read and understood the Contribution Guidelines.

Copy link
Contributor

@chandrasekharan-zipstack chandrasekharan-zipstack left a comment

Choose a reason for hiding this comment

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

Changes seem okay to me for the most part - a minor suggestion is to rely on django's update_or_create method instead

Copy link

sonarcloud bot commented May 13, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link
Contributor

@harini-venkataraman harini-venkataraman left a comment

Choose a reason for hiding this comment

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

LGTM

@nehabagdia nehabagdia merged commit ad18792 into main May 13, 2024
4 checks passed
@nehabagdia nehabagdia deleted the fix/multi-prompt-run branch May 13, 2024 14:55
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.

None yet

5 participants